[PATCH] Enable HW Breakpoint in gdbserver-linux-x86
Michael Eager
eager@eagerm.com
Wed Jul 18 18:14:00 GMT 2012
The code in gdbserver which supports hardware watchpoints on
x86 Linux can also support hardware breakpoints without modification.
The attached patch calls the insert/remove watchpoint routines
for hardware breakpoints as well as watchpoints. Most of the
changes are to add comments identifying the wp/bp type values.
2012-07-18 Michael Eager <eager@eagercon.com>
* gdbserver/i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP,
translate to hw_execute.
* gdbserver/linux-x86-low.c (x86_insert_point, x86_remove_point):
Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
hardware breakpoint.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdbserver-hwbp.patch
Type: text/x-patch
Size: 2197 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120718/d4398e19/attachment.bin>
More information about the Gdb-patches
mailing list