summaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2012-01-23 17:12:30 +0000
committerPedro Alves <pedro@codesourcery.com>2012-01-23 17:12:30 +0000
commitf31d5ba21d7c2ffe290d0e41b8d2703f9ca0aa7a (patch)
tree41030abb6e93f0b66032b734b7d77380787c5d11 /gdb/utils.c
parent1ace069643a34f84b1c555c01e728b9d0865c748 (diff)
downloadgdb-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/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 4863e41d6df..39ec2541155 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