diff options
Diffstat (limited to 'gdb/gdbserver/i386-low.h')
-rw-r--r-- | gdb/gdbserver/i386-low.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gdb/gdbserver/i386-low.h b/gdb/gdbserver/i386-low.h index 1a4e3cc..d91c90a 100644 --- a/gdb/gdbserver/i386-low.h +++ b/gdb/gdbserver/i386-low.h @@ -29,6 +29,11 @@ counts, and allow to watch regions up to 16 bytes long (32 bytes on 64 bit hosts). */ +#include "break-common.h" + +/* Map the protocol watchpoint type TYPE to enum target_hw_bp_type. */ + +enum target_hw_bp_type Z_packet_to_hw_type (char type); /* Debug registers' indices. */ #define DR_FIRSTADDR 0 @@ -58,16 +63,18 @@ extern void i386_low_init_dregs (struct i386_debug_reg_state *state); /* Insert a watchpoint to watch a memory region which starts at address ADDR and whose length is LEN bytes. Watch memory accesses - of the type TYPE_FROM_PACKET. Return 0 on success, -1 on failure. */ + of the type TYPE. Return 0 on success, -1 on failure. */ extern int i386_low_insert_watchpoint (struct i386_debug_reg_state *state, - char type_from_packet, CORE_ADDR addr, + enum target_hw_bp_type type, + CORE_ADDR addr, int len); /* Remove a watchpoint that watched the memory region which starts at address ADDR, whose length is LEN bytes, and for accesses of the - type TYPE_FROM_PACKET. Return 0 on success, -1 on failure. */ + type TYPE. Return 0 on success, -1 on failure. */ extern int i386_low_remove_watchpoint (struct i386_debug_reg_state *state, - char type_from_packet, CORE_ADDR addr, + enum target_hw_bp_type type, + CORE_ADDR addr, int len); /* Return non-zero if we can watch a memory region that starts at |