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.
This commit is contained in:
Pedro Alves
2012-01-23 17:12:30 +00:00
parent 050a2e1dab
commit e360902bf6
4 changed files with 22 additions and 10 deletions

View File

@@ -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