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]

Re: Interactively add symbols


On 2017-08-04 10:42, Lars Brinkhoff wrote:
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

Hi Lars,

As you mentioned, this is a feature that has been often requested. It pops up once in a while on IRC. The best way to get some progress on this would be to make it work for you, and the submit what you have. That's how all features are born. If you are stuck or need guidance, you are very welcome to ask here or on IRC.

Thanks!

Simon


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