diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-07-24 16:42:54 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-07-24 16:42:54 +0000 |
commit | 705b278bd141be8d3abcdb8de3ea05e9cd639d69 (patch) | |
tree | 8f7d08663127a36d009c89a53a4b0d21afe436dd /gdb/ia64-linux-nat.c | |
parent | f1e2bc6264213b0679d7cad53e7a3118fd64e102 (diff) | |
download | gdb-705b278bd141be8d3abcdb8de3ea05e9cd639d69.zip gdb-705b278bd141be8d3abcdb8de3ea05e9cd639d69.tar.gz gdb-705b278bd141be8d3abcdb8de3ea05e9cd639d69.tar.bz2 |
2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
* ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
that we have a SIGTRAP before returning non-zero.
Diffstat (limited to 'gdb/ia64-linux-nat.c')
-rw-r--r-- | gdb/ia64-linux-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index 7d4cc43..dacb672 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c @@ -634,7 +634,8 @@ ia64_linux_stopped_by_watchpoint (ptid_t ptid) errno = 0; ptrace (PTRACE_GETSIGINFO, tid, (PTRACE_ARG3_TYPE) 0, &siginfo); - if (errno != 0 || (siginfo.si_code & 0xffff) != 0x0004 /* TRAP_HWBKPT */) + if (errno != 0 || siginfo.si_signo != SIGTRAP || + (siginfo.si_code & 0xffff) != 0x0004 /* TRAP_HWBKPT */) return 0; psr = read_register_pid (IA64_PSR_REGNUM, ptid); |