X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fcommand.h;h=bed615c31af189bba64bbe6df352a0d1ef7530ea;hb=55ac2b9961c5571dd786de658d38384aa6e8a816;hp=5678c9e2ed7753ab645e5e622a25775b7a904cf6;hpb=b05dcbb7f97fb8e8b1449a6bde96761b3cb3e39b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/command.h b/gdb/command.h index 5678c9e2ed..bed615c31a 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -1,7 +1,7 @@ /* Header file for command-reading library command.c. Copyright (C) 1986, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1999, 2000, - 2002, 2004, 2007, 2008 Free Software Foundation, Inc. + 2002, 2004, 2007, 2008, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -87,6 +87,9 @@ typedef enum var_types /* ZeroableInteger. *VAR is an int. Like Unsigned Integer except that zero really means zero. */ var_zinteger, + /* ZeroableUnsignedInteger. *VAR is an unsigned int. Zero really + means zero. */ + var_zuinteger, /* Enumerated type. Can only have one of the specified values. *VAR is a char pointer to the name of the element that we find. */ var_enum @@ -135,7 +138,8 @@ extern void set_cmd_sfunc (struct cmd_list_element *cmd, cmd_sfunc_ftype *sfunc); extern void set_cmd_completer (struct cmd_list_element *cmd, - char **(*completer) (char *text, char *word)); + char **(*completer) (struct cmd_list_element *cmd, + char *text, char *word)); /* HACK: cagney/2002-02-23: Code, mostly in tracepoints.c, grubs around in cmd objects to test the value of the commands sfunc(). */ @@ -332,6 +336,17 @@ extern void add_setshow_zinteger_cmd (char *name, struct cmd_list_element **set_list, struct cmd_list_element **show_list); +extern void add_setshow_zuinteger_cmd (char *name, + enum command_class class, + unsigned int *var, + const char *set_doc, + const char *show_doc, + const char *help_doc, + cmd_sfunc_ftype *set_func, + show_value_ftype *show_func, + struct cmd_list_element **set_list, + struct cmd_list_element **show_list); + /* Do a "show" command for each thing on a command list. */ extern void cmd_show_list (struct cmd_list_element *, int, char *);