From: Nick Roberts Date: Thu, 6 Aug 2009 08:19:58 +0000 (+0000) Subject: (defaulted_query): Don't ask for confirmation if server X-Git-Tag: cgen-snapshot-20090901~256 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a502cf95feb41fa27b1b22d477c5c62b5b9b7b20;p=thirdparty%2Fbinutils-gdb.git (defaulted_query): Don't ask for confirmation if server prefix is used. --- diff --git a/gdb/utils.c b/gdb/utils.c index eb75f2e50f8..a266b027861 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