diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2020-10-07 16:55:52 +0200 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2020-10-07 16:55:52 +0200 |
commit | b68bef998c81f01d73c02e7a8fb41ad8db685db1 (patch) | |
tree | f1c8d7d08eb8078141034feeed2da73156c98697 /gdb | |
parent | 4641551a7a176f31ebe75bf068b4a6e3fa5a612f (diff) | |
download | gdb-b68bef998c81f01d73c02e7a8fb41ad8db685db1.zip gdb-b68bef998c81f01d73c02e7a8fb41ad8db685db1.tar.gz gdb-b68bef998c81f01d73c02e7a8fb41ad8db685db1.tar.bz2 |
gdb/infcmd: remove redundant clear_proceed_status call
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`.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infcmd.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 300bf13..4fea491 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/infcmd.c b/gdb/infcmd.c index d8f9597..498089f 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; |