From e360902bf689e9adf4297e79df59ee92cd35ddc0 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 23 Jan 2012 17:12:30 +0000 Subject: 2012-01-23 Pedro Alves * 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. --- gdb/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/utils.c') 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 -- cgit v1.1