From: uweigand 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: http://git.osdn.net/view?a=commitdiff_plain;h=63c3c968d358902e50cb1180de16a6a5c0638455;p=pf3gnuchains%2Fpf3gnuchains3x.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 e787d0d963..3d581b7668 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 31e46d6395..3cee912250 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) {