diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-04-16 21:26:46 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-04-16 21:26:46 +0000 |
commit | 1186f287dcd3023f3c90170b5b69123219cfd0a8 (patch) | |
tree | a9f4bfb726e0e7ba5f6cf7fba5d7ff84dee9716e /gdb/ia64-linux-nat.c | |
parent | 0279cc646cd86ba5685ef358766a4d8e1349cf0e (diff) | |
download | binutils-gdb-1186f287dcd3023f3c90170b5b69123219cfd0a8.tar.gz |
Make hw watchpoints work with both the 2.4.2 kernel and the 2.4.3 kernel.
Diffstat (limited to 'gdb/ia64-linux-nat.c')
-rw-r--r-- | gdb/ia64-linux-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index 7fe28d11581..1a000eafc36 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c @@ -630,7 +630,7 @@ ia64_linux_stopped_by_watchpoint (int pid) errno = 0; ptrace (PTRACE_GETSIGINFO, tid, (PTRACE_ARG3_TYPE) 0, &siginfo); - if (errno != 0 || siginfo.si_code != 0x30004 /* TRAP_HWBKPT */) + if (errno != 0 || (siginfo.si_code & 0xffff) != 0x0004 /* TRAP_HWBKPT */) return 0; psr = read_register_pid (IA64_PSR_REGNUM, pid); |