Interactively add symbols
Lars Brinkhoff
lars@nocrew.org
Fri Aug 4 08:50:00 GMT 2017
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
More information about the Gdb
mailing list