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.
This commit is contained in:
Yao Qi 2016-03-18 14:28:14 +00:00
parent 78a2bc3c16
commit 80aea927cc
2 changed files with 6 additions and 1 deletions

View 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.

View 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;