This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: varargs in TUI defined functions ?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]