String argument within a gdb command file

Tom Tromey tromey@redhat.com
Wed Jan 11 14:32:00 GMT 2012


>>>>> "NK" == First Last <nvk4444@yahoo.com> writes:

NK> I am trying to use add-symbol-file with arguments within a gdb command file.
NK> add-symbol-file $filename $load_addr
NK> I found that the $filename is not evaluated

NK> Any suggestions?

You can use 'eval', or Python scripting.

Tom



More information about the Gdb mailing list