gdb, infcmd: remove redundant ERROR_NO_INFERIOR in continue_command
authorNils-Christian Kempke <nils-christian.kempke@intel.com>
Wed, 6 Apr 2022 08:11:23 +0000 (10:11 +0200)
committerChristina Schimpe <christina.schimpe@intel.com>
Wed, 29 Mar 2023 10:54:48 +0000 (12:54 +0200)
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 <christina.schimpe@intel.com>
gdb/infcmd.c

index e2032d185646b3ebfd1308c2b74d24ba31323914..a68611538f21884e9ff7a16457c59d3831c3f85f 100644 (file)
@@ -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)