This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: add-symbol-file arguments
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 :-)
--
Daniel Jacobowitz
CodeSourcery