diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2006-05-05 23:46:58 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2006-05-05 23:46:58 +0000 |
commit | d539ed7ecddb3f5f62505e0d6a77a2a49c865432 (patch) | |
tree | c017bc9e5ac8fde829f2aac9c9e1a8d3e7870cd7 /gdb | |
parent | c324242868c7eeb724a226f1f551db4145884fea (diff) | |
download | gdb-d539ed7ecddb3f5f62505e0d6a77a2a49c865432.zip gdb-d539ed7ecddb3f5f62505e0d6a77a2a49c865432.tar.gz gdb-d539ed7ecddb3f5f62505e0d6a77a2a49c865432.tar.bz2 |
* linux-nat.c (linux_nat_wait): Do not short-cut reporting
of 'uninteresting' signals when single-stepping.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/linux-nat.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e787d0d..3d581b7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-05-05 Ulrich Weigand <uweigand@de.ibm.com> + + * linux-nat.c (linux_nat_wait): Do not short-cut reporting + of 'uninteresting' signals when single-stepping. + 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com> * MAINTAINERS: Move NEWS to the documentation entry. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 31e46d6..3cee912 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) { |