mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
Make hw watchpoints work with both the 2.4.2 kernel and the 2.4.3 kernel.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user