[PATCH] gdb/infcmd: remove redundant clear_proceed_status call
Tankut Baris Aktemur
tankut.baris.aktemur@intel.com
Tue Oct 6 16:36:32 GMT 2020
In `attach_command`, there is a call to `init_wait_for_inferior`
followed by a call to `clear_proceed_status`. However,
`init_wait_for_inferior` already calls `clear_proceed_status`. Remove
the redundant call.
Regression-tested on X86_64 Linux.
gdb/ChangeLog:
2020-10-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* infcmd.c (attach_command): Remove the redundant call to
`clear_proceed_status`.
---
gdb/infcmd.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index d8f95977a18..498089fdb52 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -2619,7 +2619,6 @@ attach_command (const char *args, int from_tty)
/* Set up execution context to know that we should return from
wait_for_inferior as soon as the target reports a stop. */
init_wait_for_inferior ();
- clear_proceed_status (0);
inferior->needs_setup = 1;
--
2.17.1
More information about the Gdb-patches
mailing list