]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Implement "to_stopped_by_hw_breakpoint" for x86 debug registers.
authorJohn Baldwin <jhb@FreeBSD.org>
Sun, 4 Mar 2018 05:25:33 +0000 (21:25 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Sun, 4 Mar 2018 05:25:33 +0000 (21:25 -0800)
commit12279366d71627bfbdd74d1a6675dca825d8feca
treee15692d8fa4694fb384cd0ef3c19d2b1c5a1dcc0
parent72f53f22dfc1bb79ae0141a91b8f9786e1964f41
Implement "to_stopped_by_hw_breakpoint" for x86 debug registers.

Report that a thread is stopped by a hardware breakpoint if a non-data
watchpoint is set in DR6.  This change should be a no-op since a target
still needs to implement the "to_supports_stopped_by_hw_breakpoint"
method before this function is used.

gdb/ChangeLog:

* nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
* nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
prototype.
* x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
(x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
method.
gdb/ChangeLog
gdb/nat/x86-dregs.c
gdb/nat/x86-dregs.h
gdb/x86-nat.c