From a502cf95feb41fa27b1b22d477c5c62b5b9b7b20 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Thu, 6 Aug 2009 08:19:58 +0000 Subject: [PATCH] (defaulted_query): Don't ask for confirmation if server prefix is used. --- gdb/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2