GNU Binutils with patches for OS216
修訂 | 80aea927cc7bf97a2bc22e1fb2111c52be295e8b (tree) |
---|---|
時間 | 2016-03-18 23:28:14 |
作者 | Yao Qi <yao.qi@lina...> |
Commiter | Yao Qi |
Remove redundant WIFSTOPPED check
WIFSTOPPED is checked linux_wstatus_maybe_breakpoint, so WIFSTOPPED
in "WIFSTOPPED (wstat) && linux_wstatus_maybe_breakpoint (wstat)"
is redundant. This patch removes WIFSTOPPED check.
gdb/gdbserver:
2016-03-18 Yao Qi <yao.qi@linaro.org>
* linux-low.c (linux_low_filter_event): Remove redundant
WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
@@ -1,3 +1,8 @@ | ||
1 | +2016-03-18 Yao Qi <yao.qi@linaro.org> | |
2 | + | |
3 | + * linux-low.c (linux_low_filter_event): Remove redundant | |
4 | + WIFSTOPPED check together with linux_wstatus_maybe_breakpoint. | |
5 | + | |
1 | 6 | 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net> |
2 | 7 | |
3 | 8 | * linux-ppc-low.c (ppc_supports_tracepoints): New function. |
@@ -2443,7 +2443,7 @@ linux_low_filter_event (int lwpid, int wstat) | ||
2443 | 2443 | } |
2444 | 2444 | } |
2445 | 2445 | |
2446 | - if (WIFSTOPPED (wstat) && linux_wstatus_maybe_breakpoint (wstat)) | |
2446 | + if (linux_wstatus_maybe_breakpoint (wstat)) | |
2447 | 2447 | { |
2448 | 2448 | if (save_stop_reason (child)) |
2449 | 2449 | have_stop_pc = 1; |