Make hw watchpoints work with both the 2.4.2 kernel and the 2.4.3 kernel.

This commit is contained in:
Kevin Buettner 2001-04-16 21:26:46 +00:00
parent 0279cc646c
commit 1186f287dc
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-03-31 Kevin Buettner <kevinb@redhat.com>
* ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
comparison against TRAP_HWBKPT constant yet again to account
for the various values used by different kernel versions.
2001-04-16 Daniel Berlin <dan@cgsoftware.com> 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
* demangle.c (_initialize_demangler): Use xcalloc on the * demangle.c (_initialize_demangler): Use xcalloc on the

View File

@ -630,7 +630,7 @@ ia64_linux_stopped_by_watchpoint (int pid)
errno = 0; errno = 0;
ptrace (PTRACE_GETSIGINFO, tid, (PTRACE_ARG3_TYPE) 0, &siginfo); 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; return 0;
psr = read_register_pid (IA64_PSR_REGNUM, pid); psr = read_register_pid (IA64_PSR_REGNUM, pid);