varargs in TUI defined functions ?
Tom Tromey
tromey@redhat.com
Wed May 26 15:26:00 GMT 2010
>>>>> "Martin" == Martin Oberhuber <Martin.Oberhuber@gmx.at> writes:
Martin> As a gdb commandline (text UI) user, I want to define a command
Martin> that can take a variable number of arguments. I want to use this
Martin> to create wrapper scripts for common operations. Example:
Martin> But at the moment there seems to be still no solution according
Martin> to latest docs:
Martin> http://sourceware.org/gdb/current/onlinedocs/gdb/Define.html#Define
You can do it quite easily using Python.
Martin> At the moment, there is $argc and $arg0 ... $arg9, but what I'm
Martin> missing is a builtin convenience variable that holds the entire
Martin> list of arguments.
I'd also be amenable to a patch adding this.
Tom
More information about the Gdb
mailing list