This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: varargs in TUI defined functions ?
- From: Tom Tromey <tromey at redhat dot com>
- To: "Martin Oberhuber" <Martin dot Oberhuber at gmx dot at>
- Cc: gdb at sourceware dot org
- Date: Wed, 26 May 2010 09:25:59 -0600
- Subject: Re: varargs in TUI defined functions ?
- References: <20100526083119.38220@gmx.net>
- Reply-to: tromey at redhat dot com
>>>>> "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