Re: [PATCH, doc RFA] Add guile gdb parameter support

2014-05-26 Thread Doug Evans
+ guile-user for more eyes On Mon, May 26, 2014 at 3:03 PM, Ludovic Courtès wrote: > Hi, Doug, > > Doug Evans skribis: > >> +@deffn {Scheme Procedure} parameter? object >> +Return @code{#t} if @var{object} is a @code{} object. >> +Otherwise return @code{#f}.

[PATCH] Improved ^c support for gdb/guile

2014-02-16 Thread Doug Evans
not alter test behaviour. The patch just tells the parent gdb to ignore SIGPWR, which is simple enough without loss of coverage. A good question is what other signals Guile GC might use. Regression tested on amd64-linux with guile 2.0.9. 2014-02-17 Doug Evans * Makefile.in (SUBDIR_GUIL

Re: Guile 2.0 is turning 3 years old, let's hack!

2014-02-11 Thread Doug Evans
On Mon, Feb 10, 2014 at 2:14 AM, Ludovic Courtès wrote: > Hello! > > As I'm sure you all know, Guile 2.0 was released on Feb. 16th, 2011: > > http://lists.gnu.org/archive/html/guile-devel/2011-02/msg00173.html > > This was such an important milestone for us Guilers that we've taken the > habit t

Re: [PATCH v2 00/36] Guile extension language for GDB

2014-02-09 Thread Doug Evans
On Mon, Jan 20, 2014 at 1:50 PM, Doug Evans wrote: > Hi. > > This patch series is v2 of my first pass at adding support for the > Guile extension language. A lot is working, but there's > still a ways to go. > > guile-user: I'm going to avoid spamming you with t

Re: Fun with LD_PRELOAD

2014-02-05 Thread Doug Evans
On Tue, Feb 4, 2014 at 3:21 AM, Ludovic Courtès wrote: > Hi, Doug, > > Doug Evans skribis: > >> It's kinda useful to see the system call tracing amongst gdb's own >> debug output, but my real goal is to explore ways of exercising gdb >> that are otherwise

Fun with LD_PRELOAD

2014-02-02 Thread Doug Evans
Hi. Here's my system-call wrapping module for gdb+guile. At this point it's just a prototype, and an initial one at that. It's kinda useful to see the system call tracing amongst gdb's own debug output, but my real goal is to explore ways of exercising gdb that are otherwise harder to do. With thi

Re: [PATCH v2 02/13] script language API for GDB: extension.[ch]

2014-01-21 Thread Doug Evans
On Tue, Jan 21, 2014 at 8:21 PM, Mark H Weaver wrote: > Tom Tromey writes: > >>> "Ludovic" == Ludovic Courtès writes: >> >> Ludovic> I guess this is another limitation of Guile’s current signal >> handling >> Ludovic> strategy, and something we should fix. >> >> FWIW I think it would be suf

[PATCH v2 00/36] Guile extension language for GDB

2014-01-20 Thread Doug Evans
Hi. This patch series is v2 of my first pass at adding support for the Guile extension language. A lot is working, but there's still a ways to go. guile-user: I'm going to avoid spamming you with the entire series of 36 emails. But I may add you back to the discussion of a particular patch. Th

[PATCH v1 00/36] Guile extension language

2013-12-24 Thread Doug Evans
Hi. This patch series is a first pass at adding support for the Guile extension language. A lot is working, but there's still a ways to go. And I still have more docs to write, but what's there now is ready for review. guile-user: I'm going to avoid spamming you with the entire series of 36 ema

Re: [PATCH v2 02/13] script language API for GDB: extension.[ch]

2013-12-24 Thread Doug Evans
[+ guile-user, in case they have any thoughts on Guile SIGINT handling] On Mon, Dec 23, 2013 at 1:57 PM, Tom Tromey wrote: >>>>>> "Doug" == Doug Evans writes: > > Doug> +void > Doug> +clear_quit_flag (void) > Doug> +{ > Doug> + int i; &

Re: [PATCH 00/13] script language API for GDB

2013-12-23 Thread Doug Evans
On Mon, Dec 23, 2013 at 1:54 PM, Tom Tromey wrote: >>>>>> "Doug" == Doug Evans writes: > > Doug> For those that don't care, "info pretty-printer" can still print > Doug> all of them. "info pretty-printer" et.al. would need some

Re: [PATCH 00/13] script language API for GDB

2013-12-23 Thread Doug Evans
[+ guile-user For background: https://sourceware.org/ml/gdb-patches/2013-12/msg00243.html ] On Fri, Dec 20, 2013 at 8:26 AM, Tom Tromey wrote: >>>>>> "Doug" == Doug Evans writes: > > Doug> One thought I have for this is "info guile pretty-printer"

[PATCH 00/13] script language API for GDB

2013-12-05 Thread Doug Evans
Hi. My patch set to add a scripting API to GDB is ready for submission. It sets things up so that adding Guile scripting is straightforward. I've cc'd guile-users to apprise them of my progress. I'll spare them the actual set of patches here, though I plan to cc them when submitting the Guile port

[RFC][PATCH] GDB->Python API changes in preparation for Guile support

2013-11-24 Thread Doug Evans
re of the change it should be sufficient. And for those that want to wait, a full patch set will follow hopefully by next weekend. 2013-11-24 Doug Evans Call into Python via script_language API. * scripting.c: New file. * scripting.h: New file. * python/

Re: guile scripting for gdb

2013-11-10 Thread Doug Evans
Doug Evans writes: > On Sun, Nov 10, 2013 at 4:19 PM, Ludovic Courtès wrote: >> Doug Evans skribis: >>> On Thu, Nov 7, 2013 at 3:39 PM, Ludovic Courtès wrote: >>>> As discussed on IRC, one possible issue is eq?-ness of SMOBs: one would >>>> usually e

Re: guile scripting for gdb

2013-11-10 Thread Doug Evans
On Sun, Nov 10, 2013 at 4:19 PM, Ludovic Courtès wrote: > Doug Evans skribis: > >> On Thu, Nov 7, 2013 at 3:39 PM, Ludovic Courtès wrote: > > [...] > >>> As discussed on IRC, one possible issue is eq?-ness of SMOBs: one would >>> usually expects pointer

Re: guile scripting for gdb

2013-11-09 Thread Doug Evans
On Sat, Nov 9, 2013 at 10:40 AM, Doug Evans wrote: >> As discussed on IRC, one possible issue is eq?-ness of SMOBs: one would >> usually expects pointer equality to be preserved at the Scheme level. > > Yeah. > That'll require gdb maintaining its own table(s) for each

Re: guile scripting for gdb

2013-11-09 Thread Doug Evans
On Thu, Nov 7, 2013 at 3:39 PM, Ludovic Courtès wrote: > Hello, > > Doug Evans skribis: > >> fyi, I've uploaded my gdb-guile branch to github. >> >> https://github.com/dje42/gdb.git >> >> It's in branch gdb-guile. > > Nice piece

guile scripting for gdb

2013-11-04 Thread Doug Evans
Hi. fyi, I've uploaded my gdb-guile branch to github. https://github.com/dje42/gdb.git It's in branch gdb-guile. It's still very preliminary, there's still lots to do, and there are some open issues. If you're interested take a look. We'll have to see how things end up if/after it passes code re

guile scripting for gdb

2013-11-04 Thread Doug Evans
Hi. fyi, I've uploaded my gdb-guile branch to github. https://github.com/dje42/gdb.git It's in branch gdb-guile. It's still very preliminary, and there are some open issues. If you're interested take a look. We'll have to see how things end up if/after it passes code review, so while I welcome a

smob gc protection, and inheritance

2013-09-03 Thread Doug Evans
Hi. I have a few questions about smobs: 1) Suppose I have some C code that creates a smob and its containing SCM, but does not always expose the SCM to Scheme. E.g. struct foo_object { int bar; SCM baz; } static SCM make_foo_smob (void) { struct foo_object *foo_smob = (struct foo_object

Re: Guile speed versus qscheme, mzscheme

2009-08-30 Thread Doug Evans
Doug Evans wrote: Hi. I happened on this message from awhile ago, and got curious about the current speed of Guile. http://sourceware.org/ml/guile/2000-08/msg00187.html I got a copy of qscheme, hacked it so that it would compile with current gcc, and ran the benchmark again. OOC, I also

Guile speed versus qscheme, mzscheme

2009-08-30 Thread Doug Evans
Hi. I happened on this message from awhile ago, and got curious about the current speed of Guile. http://sourceware.org/ml/guile/2000-08/msg00187.html I got a copy of qscheme, hacked it so that it would compile with current gcc, and ran the benchmark again. OOC, I also tested with mzscheme. Her