From: Yao Qi Date: Fri, 18 Mar 2016 14:28:14 +0000 (+0000) Subject: Remove redundant WIFSTOPPED check X-Git-Tag: users/hjl/linux/release/2.26.51.0.2~1^2~70^2~149 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80aea927cc7bf97a2bc22e1fb2111c52be295e8b;p=thirdparty%2Fbinutils-gdb.git 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 * linux-low.c (linux_low_filter_event): Remove redundant WIFSTOPPED check together with linux_wstatus_maybe_breakpoint. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index dda87b0eea7..ecc5281a995 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2016-03-18 Yao Qi + + * linux-low.c (linux_low_filter_event): Remove redundant + WIFSTOPPED check together with linux_wstatus_maybe_breakpoint. + 2016-03-09 Marcin Kościelnicki * linux-ppc-low.c (ppc_supports_tracepoints): New function. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index c008847a42d..183cdd9e743 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -2443,7 +2443,7 @@ linux_low_filter_event (int lwpid, int wstat) } } - if (WIFSTOPPED (wstat) && linux_wstatus_maybe_breakpoint (wstat)) + if (linux_wstatus_maybe_breakpoint (wstat)) { if (save_stop_reason (child)) have_stop_pc = 1;