aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2009-08-06 08:19:58 +0000
committerNick Roberts <nickrob@snap.net.nz>2009-08-06 08:19:58 +0000
commita502cf95feb41fa27b1b22d477c5c62b5b9b7b20 (patch)
tree6311e340f1beb30e9b62786dcb93b01adaaa1464
parent78ad01c15f82bdf56e78a249080b77f0a695eb28 (diff)
downloadgdb-a502cf95feb41fa27b1b22d477c5c62b5b9b7b20.zip
gdb-a502cf95feb41fa27b1b22d477c5c62b5b9b7b20.tar.gz
gdb-a502cf95feb41fa27b1b22d477c5c62b5b9b7b20.tar.bz2
(defaulted_query): Don't ask for confirmation if server
prefix is used.
-rw-r--r--gdb/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index eb75f2e..a266b02 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1436,8 +1436,8 @@ defaulted_query (const char *ctlstr, const char defchar, va_list args)
}
/* Automatically answer the default value if the user did not want
- prompts. */
- if (! caution)
+ prompts or the command was issued with the server prefix. */
+ if (! caution || server_command)
return def_value;
/* If input isn't coming from the user directly, just say what