aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-nat.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-11-20 19:57:29 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-11-20 19:57:29 +0000
commita79d3c27d1827de4f4b428644ae1447c93a13de5 (patch)
tree36a6ba5b863c026b202ce7eade50781a79e0aba6 /gdb/i386-nat.h
parentebec9a0f77584145a70e8f5627dd590bae43b580 (diff)
downloadgdb-a79d3c27d1827de4f4b428644ae1447c93a13de5.zip
gdb-a79d3c27d1827de4f4b428644ae1447c93a13de5.tar.gz
gdb-a79d3c27d1827de4f4b428644ae1447c93a13de5.tar.bz2
gdb/
Fix repeated rwatch output. * amd64-linux-nat.c (amd64_linux_dr_set, amd64_linux_dr_set_control) (amd64_linux_dr_set_addr, amd64_linux_dr_reset_addr) (amd64_linux_dr_get_status): New comments. (amd64_linux_dr_unset_status): New function. (_initialize_amd64_linux_nat): Install it. * i386-linux-nat.c (i386_linux_dr_get, i386_linux_dr_set) (i386_linux_dr_set_control, i386_linux_dr_set_addr) (i386_linux_dr_reset_addr, i386_linux_dr_get_status): New comments. (i386_linux_dr_unset_status): New function. (_initialize_i386_linux_nat): Install it. * i386-nat.c (I386_DR_WATCH_MASK): New macro. (I386_DR_WATCH_HIT): Use I386_DR_WATCH_MASK. (i386_insert_aligned_watchpoint): Call i386_dr_low.unset_status. * i386-nat.h (struct i386_dr_low_type): Extend comments for set_control, set_addr, reset_addr and get_status. New unset_status. * breakpoint.c (update_watchpoint): Extend the comment. gdb/testsuite/ * gdb.base/watchpoint-hw-hit-once.exp, gdb.base/watchpoint-hw-hit-once.c: New.
Diffstat (limited to 'gdb/i386-nat.h')
-rw-r--r--gdb/i386-nat.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/i386-nat.h b/gdb/i386-nat.h
index f49b9f6..892a804 100644
--- a/gdb/i386-nat.h
+++ b/gdb/i386-nat.h
@@ -49,16 +49,19 @@ extern void i386_use_watchpoints (struct target_ops *);
functions are:
set_control -- set the debug control (DR7)
- register to a given value
+ register to a given value for all LWPs
set_addr -- put an address into one debug
- register
+ register for all LWPs
reset_addr -- reset the address stored in
- one debug register
+ one debug register for all LWPs
get_status -- return the value of the debug
- status (DR6) register.
+ status (DR6) register for current LWP
+
+ unset_status -- unset the specified bits of the debug
+ status (DR6) register for all LWPs
Additionally, the native file should set the debug_register_length
field to 4 or 8 depending on the number of bytes used for
@@ -70,6 +73,7 @@ struct i386_dr_low_type
void (*set_addr) (int, CORE_ADDR);
void (*reset_addr) (int);
unsigned long (*get_status) (void);
+ void (*unset_status) (unsigned long);
int debug_register_length;
};