From d539ed7ecddb3f5f62505e0d6a77a2a49c865432 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 5 May 2006 23:46:58 +0000 Subject: [PATCH] * linux-nat.c (linux_nat_wait): Do not short-cut reporting of 'uninteresting' signals when single-stepping. --- gdb/ChangeLog | 5 +++++ gdb/linux-nat.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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) { -- 2.34.1