This is the mail archive of the gdb@sourceware.cygnus.com 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]

Context attached to a command?


Hello,

Do any of the existing command.h functions allow you to associate some
sort of context with the command?
For instance, add_cmd() takes a function

	callback(char*arg, int from_tty);

the assumption being that the function can pick up any relevant data
from globals.  Is there an equivalent:

	calloback(void *context, char *arg, int from_tty);

where ``context'' was passed to the original add_command?  If not, I'll
add it.

	Andrew

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