From: Ulrich Weigand Date: Fri, 5 May 2006 23:46:58 +0000 (+0000) Subject: * linux-nat.c (linux_nat_wait): Do not short-cut reporting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d539ed7ecddb3f5f62505e0d6a77a2a49c865432;p=binutils-gdb.git * linux-nat.c (linux_nat_wait): Do not short-cut reporting of 'uninteresting' signals when single-stepping. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e787d0d963f..3d581b7668c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-05-05 Ulrich Weigand + + * linux-nat.c (linux_nat_wait): Do not short-cut reporting + of 'uninteresting' signals when single-stepping. + 2006-05-05 Daniel Jacobowitz * MAINTAINERS: Move NEWS to the documentation entry. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 31e46d63956..3cee912250f 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -2155,7 +2155,10 @@ retry: { int signo = target_signal_from_host (WSTOPSIG (status)); - if (signal_stop_state (signo) == 0 + /* If we get a signal while single-stepping, we may need special + care, e.g. to skip the signal handler. Defer to common code. */ + if (!lp->step + && signal_stop_state (signo) == 0 && signal_print_state (signo) == 0 && signal_pass_state (signo) == 1) {