From b863b097ee7a79b1114b9dd386864bc3c23a51b0 Mon Sep 17 00:00:00 2001 From: Nils-Christian Kempke Date: Wed, 6 Apr 2022 10:11:23 +0200 Subject: [PATCH] gdb, infcmd: remove redundant ERROR_NO_INFERIOR in continue_command The ERROR_NO_INFERIOR macro is already called at the beginning of the function continue_command. Since target/inferior are not switched in-between, the second call to it is redundant. Co-Authored-By: Christina Schimpe --- gdb/infcmd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gdb/infcmd.c b/gdb/infcmd.c index e2032d18564..a68611538f2 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -735,7 +735,6 @@ continue_command (const char *args, int from_tty) } } - ERROR_NO_INFERIOR; ensure_not_tfind_mode (); if (!non_stop || !all_threads_p) -- 2.30.2