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: add-symbol-file arguments


Daniel Jacobowitz wrote:
On Mon, Nov 03, 2008 at 12:03:51PM -0800, Manning, Sid wrote:

Is it possible to "stringify" the value in a variable and use the result in another gdb command. The specific command is add-symbol-file.

Not yet, but the ongoing Python integration will allow this easily.


Well, that's not entirely true.  You can do it now, but it's ugly...
you can steal the "set logging" command to generate output to a
temporary file, generate output using the "printf" command,
and then "source" it.  It's not highly recommended :-)


What -- you don't like self-modifying code? ;-)




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