Make hardware watchpoint support work again on Linux/IA-64.

This commit is contained in:
Kevin Buettner 2001-03-31 21:53:39 +00:00
parent 129e8d96a5
commit 6e4862ff55
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-03-31 Kevin Buettner <kevinb@redhat.com>
* ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
TRAP_HWBKPT constant to match that in the kernel headers for
Linux/IA-64.
2001-03-31 Mark Kettenis <kettenis@gnu.org>
* i386bsd-nat.c: Include "gdb_assert.h".

View File

@ -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 != 4 /* TRAP_HWBKPT */)
if (errno != 0 || siginfo.si_code != 0x30004 /* TRAP_HWBKPT */)
return 0;
psr = read_register_pid (IA64_PSR_REGNUM, pid);