String argument within a gdb command file

Tom Tromey
Wed Jan 11 14:32:00 GMT 2012

>>>>> "NK" == First Last <> 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.


More information about the Gdb mailing list