[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Guile and GDB

From: Ludovic Courtès
Subject: Guile and GDB
Date: Fri, 26 Jun 2009 00:41:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)


"Neil Jerram" <address@hidden> writes:

>     The first kind is that libguile includes the utility functions
>     gdb_print, gdb_eval, etc., and the variable gdb_output.  These have no
>     purpose except for developers to use from GDB when debugging
>     something.  For example, if you have a SCM x and want to know what it
>     is, you can do:
>     (gdb) call gdb_print(x)
>     (gdb) p gdb_output

Actually, it's also meant to be used directly by GDB.  Normally, GDB
should try to display SCM values on its own (using its own copy of
`tags.h' and the corresponding printing procedures) and resort to
calling `gdb_print ()' when it doesn't know how to display a value.

In practice, GDB currently only supports the latter, which makes it
not-so-useful (the same result can be achieved with trivial GDB macros).
See .


reply via email to

[Prev in Thread] Current Thread [Next in Thread]