aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-01-23 17:12:30 +0000
committerPedro Alves <palves@redhat.com>2012-01-23 17:12:30 +0000
commite360902bf689e9adf4297e79df59ee92cd35ddc0 (patch)
tree61450ad0833cafb136de5647f2dcc020c0b264a3 /gdb/utils.c
parent050a2e1dabbaf403d76476e890413c60ffec9b39 (diff)
downloadgdb-e360902bf689e9adf4297e79df59ee92cd35ddc0.zip
gdb-e360902bf689e9adf4297e79df59ee92cd35ddc0.tar.gz
gdb-e360902bf689e9adf4297e79df59ee92cd35ddc0.tar.bz2
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/utils.c')
-rw-r--r--gdb/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 4863e41..39ec254 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -970,7 +970,7 @@ internal_vproblem (struct internal_problem *problem,
/* Default (yes/batch case) is to quit GDB. When in batch mode
this lessens the likelihood of GDB going into an infinite
loop. */
- if (caution == 0)
+ if (!confirm)
{
/* Emit the message and quit. */
fputs_unfiltered (reason, gdb_stderr);
@@ -1384,7 +1384,7 @@ defaulted_query (const char *ctlstr, const char defchar, va_list args)
/* Automatically answer the default value if the user did not want
prompts or the command was issued with the server prefix. */
- if (! caution || server_command)
+ if (!confirm || server_command)
return def_value;
/* If input isn't coming from the user directly, just say what