This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Context attached to a command?
- To: gdb at sourceware dot cygnus dot com
- Subject: Context attached to a command?
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 23 Sep 1999 16:11:37 +1000
- DJ-Gateway: from newsgroup cygnus.gdb
- Newsgroups: cygnus.gdb
- Organization: Cygnus Solutions
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