This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Interactively add symbols


Hello,

As far as I have seen, there's no way for a user to interactively add a
symbol to a running GDB session, other than specifying an object file
from which to load symbols.  I suggest there should be a simple way to
do this from the command line.

This has come up at least three times before:
https://www.sourceware.org/ml/gdb/2007-07/msg00146.html
https://www.sourceware.org/ml/gdb/2009-11/msg00214.html
https://www.sourceware.org/ml/gdb/2015-06/msg00049.html

I'm also interested in this, although my use case is different.  I
compile Forth programs into ELF files which do contain symbol
information.  However, as is the tradition with Forth, it's mixed in
with code and data, so it's not in a format GDB would ever be expected
to understand.

If there still isn't a way to do this, would there be interest in a
patch to implement it?

Best regards,
Lars Brinkhoff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]