[binutils-gdb] gdb, infcmd: remove redundant ERROR_NO_INFERIOR in continue_command
Christina Schimpe
cschimpe@sourceware.org
Wed Mar 29 10:59:44 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b863b097ee7a79b1114b9dd386864bc3c23a51b0
commit b863b097ee7a79b1114b9dd386864bc3c23a51b0
Author: Nils-Christian Kempke <nils-christian.kempke@intel.com>
Date: Wed Apr 6 10:11:23 2022 +0200
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 <christina.schimpe@intel.com>
Diff:
---
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)
More information about the Gdb-cvs
mailing list