This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Use add_setshow_auto_boolean_cmd, not var_auto_boolean
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 28 Feb 2004 11:56:36 -0500
- Subject: [commit] Use add_setshow_auto_boolean_cmd, not var_auto_boolean
FYI,
committed,
Andrew
2004-02-28 Andrew Cagney <cagney@redhat.com>
* breakpoint.c (_initialize_breakpoint): Use
"add_setshow_auto_boolean_cmd. Better word-wrap help messages.
Add help to show command.
Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.161
diff -u -r1.161 breakpoint.c
--- breakpoint.c 26 Feb 2004 23:46:47 -0000 1.161
+++ breakpoint.c 28 Feb 2004 16:54:43 -0000
@@ -8078,15 +8078,20 @@
&breakpoint_show_cmdlist, "show breakpoint ",
0/*allow-unknown*/, &showlist);
- add_setshow_cmd ("pending", no_class, var_auto_boolean,
- (char *) &pending_break_support,
- "Set debugger's behavior regarding pending breakpoints.\n\
-If on, an unrecognized breakpoint location will cause gdb to create a pending\n\
-breakpoint. If off, an unrecognized breakpoint location results in an error.\n\
-If auto, an unrecognized breakpoint location results in a user-query to see if\n\
-a pending breakpoint should be created.","\
-Show debugger's behavior regarding pending breakpoints.",
- NULL, NULL, &breakpoint_set_cmdlist, &breakpoint_show_cmdlist);
+ add_setshow_auto_boolean_cmd ("pending", no_class, &pending_break_support, "\
+Set debugger's behavior regarding pending breakpoints.\n\
+If on, an unrecognized breakpoint location will cause gdb to create a\n\
+pending breakpoint. If off, an unrecognized breakpoint location results in\n\
+an error. If auto, an unrecognized breakpoint location results in a\n\
+user-query to see if a pending breakpoint should be created.","\
+Show debugger's behavior regarding pending breakpoints.\n\
+If on, an unrecognized breakpoint location will cause gdb to create a\n\
+pending breakpoint. If off, an unrecognized breakpoint location results in\n\
+an error. If auto, an unrecognized breakpoint location results in a\n\
+user-query to see if a pending breakpoint should be created.",
+ NULL, NULL,
+ &breakpoint_set_cmdlist,
+ &breakpoint_show_cmdlist);
pending_break_support = AUTO_BOOLEAN_AUTO;
}