gdb/infcmd: remove redundant clear_proceed_status call
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 7 Oct 2020 14:55:52 +0000 (16:55 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Wed, 7 Oct 2020 14:55:52 +0000 (16:55 +0200)
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-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

* infcmd.c (attach_command): Remove the redundant call to
`clear_proceed_status`.

gdb/ChangeLog
gdb/infcmd.c

index 300bf139b7ff735cd9b368eeb7a1ac162c8cf030..4fea49152d0a6140e4cc362bacb6152ff0d92394 100644 (file)
@@ -1,3 +1,8 @@
+2020-10-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * infcmd.c (attach_command): Remove the redundant call to
+       `clear_proceed_status`.
+
 2020-10-07  Kamil Rytarowski  <n54@gmx.com>
 
        * nat/netbsd-nat.c (write_memory, read_memory): Update.
index d8f95977a18c82f1d2aee635221e2d1e6c5d275d..498089fdb529cfa3286fef894816c985cdab0ae2 100644 (file)
@@ -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;