Remove redundant WIFSTOPPED check
authorYao Qi <yao.qi@linaro.org>
Fri, 18 Mar 2016 14:28:14 +0000 (14:28 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 18 Mar 2016 14:28:14 +0000 (14:28 +0000)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index dda87b0eea713791ba98cb62acb60f028c73cbe1..ecc5281a995c72c1a486061b7577443f44a8c8b5 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2016-03-09  Marcin Koƛcielnicki  <koriakin@0x04.net>
 
        * linux-ppc-low.c (ppc_supports_tracepoints): New function.
index c008847a42d91149171b2b0c3c2448bc0fc74de1..183cdd9e74336f1420236deaadd70e895ed87f08 100644 (file)
@@ -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;
This page took 0.032773 seconds and 4 git commands to generate.