diff options
author | Pedro Alves <pedro@codesourcery.com> | 2012-01-23 17:12:30 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2012-01-23 17:12:30 +0000 |
commit | f31d5ba21d7c2ffe290d0e41b8d2703f9ca0aa7a (patch) | |
tree | 41030abb6e93f0b66032b734b7d77380787c5d11 /gdb/top.c | |
parent | 1ace069643a34f84b1c555c01e728b9d0865c748 (diff) | |
download | gdb-f31d5ba21d7c2ffe290d0e41b8d2703f9ca0aa7a.tar.gz |
2012-01-23 Pedro Alves <palves@redhat.com>
* top.c (caution): Rename to ...
(confirm): ... this.
(show_caution): Rename to ...
(show_confirm): ... this.
(quit_cover): Adjust.
(init_main): Adjust.
* top.h (caution): Rename to ...
(confirm): ... this.
* utils.c (internal_vproblem, defaulted_query): Adjust.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/top.c b/gdb/top.c index 346d73b4e02..e41f56cf363 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -101,10 +101,10 @@ extern char lang_frame_mismatch_warn[]; /* language.c */ /* Flag for whether we want to confirm potentially dangerous operations. Default is yes. */ -int caution = 1; +int confirm = 1; static void -show_caution (struct ui_file *file, int from_tty, +show_confirm (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { fprintf_filtered (file, _("Whether to confirm potentially " @@ -291,9 +291,9 @@ void (*deprecated_context_hook) (int id); /* static */ void quit_cover (void) { - caution = 0; /* Throw caution to the wind -- we're exiting. - This prevents asking the user dumb - questions. */ + /* Stop asking user for confirmation --- we're exiting. This + prevents asking the user dumb questions. */ + confirm = 0; quit_command ((char *) 0, 0); } #endif /* defined SIGHUP */ @@ -1635,11 +1635,11 @@ Show the filename in which to record the command history"), _("\ show_history_filename, &sethistlist, &showhistlist); - add_setshow_boolean_cmd ("confirm", class_support, &caution, _("\ + add_setshow_boolean_cmd ("confirm", class_support, &confirm, _("\ Set whether to confirm potentially dangerous operations."), _("\ Show whether to confirm potentially dangerous operations."), NULL, NULL, - show_caution, + show_confirm, &setlist, &showlist); add_setshow_zinteger_cmd ("annotate", class_obscure, &annotation_level, _("\ |