aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/i386-low.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/i386-low.h')
-rw-r--r--gdb/gdbserver/i386-low.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gdbserver/i386-low.h b/gdb/gdbserver/i386-low.h
index 71f7c32..bad03b9 100644
--- a/gdb/gdbserver/i386-low.h
+++ b/gdb/gdbserver/i386-low.h
@@ -38,6 +38,9 @@ extern void i386_low_init_dregs (struct i386_debug_reg_state *state);
status (DR6) register.
*/
+/* Can we update the inferior's debug registers? */
+#define i386_dr_low_can_set_addr() 1
+
/* Update the inferior's debug register REGNUM from STATE. */
extern void i386_dr_low_set_addr (const struct i386_debug_reg_state *state,
int regnum);
@@ -45,6 +48,9 @@ extern void i386_dr_low_set_addr (const struct i386_debug_reg_state *state,
/* Return the inferior's debug register REGNUM. */
extern CORE_ADDR i386_dr_low_get_addr (int regnum);
+/* Can we update the inferior's DR7 control register? */
+#define i386_dr_low_can_set_control() 1
+
/* Update the inferior's DR7 debug control register from STATE. */
extern void i386_dr_low_set_control (const struct i386_debug_reg_state *state);
@@ -53,3 +59,7 @@ extern unsigned i386_dr_low_get_control (void);
/* Return the value of the inferior's DR6 debug status register. */
extern unsigned i386_dr_low_get_status (void);
+
+/* Return the debug register size, in bytes. */
+/* Note that sizeof (long) == 4 on win64. */
+#define i386_get_debug_register_length() (sizeof (void *))