From: Jeff Johnston Date: Thu, 24 Jul 2003 16:42:54 +0000 (+0000) Subject: 2003-07-24 Jeff Johnston X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=705b278bd141be8d3abcdb8de3ea05e9cd639d69;p=binutils-gdb.git 2003-07-24 Jeff Johnston * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify that we have a SIGTRAP before returning non-zero. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ac7e94397ea..680bd8e5617 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-07-24 Jeff Johnston + + * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify + that we have a SIGTRAP before returning non-zero. + 2003-07-23 Michal Ludvig Elena Zannoni diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index 7d4cc43072a..dacb6720bd4 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);