mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
* ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify that we have a SIGTRAP before returning non-zero.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
* ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
|
||||||
|
that we have a SIGTRAP before returning non-zero.
|
||||||
|
|
||||||
2003-07-23 Michal Ludvig <mludvig@suse.cz>
|
2003-07-23 Michal Ludvig <mludvig@suse.cz>
|
||||||
Elena Zannoni <ezannoni@redhat.com>
|
Elena Zannoni <ezannoni@redhat.com>
|
||||||
|
|
||||||
|
@ -634,7 +634,8 @@ ia64_linux_stopped_by_watchpoint (ptid_t ptid)
|
|||||||
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 & 0xffff) != 0x0004 /* TRAP_HWBKPT */)
|
if (errno != 0 || siginfo.si_signo != SIGTRAP ||
|
||||||
|
(siginfo.si_code & 0xffff) != 0x0004 /* TRAP_HWBKPT */)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
psr = read_register_pid (IA64_PSR_REGNUM, ptid);
|
psr = read_register_pid (IA64_PSR_REGNUM, ptid);
|
||||||
|
Reference in New Issue
Block a user