aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-linux-nat.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-03-01 04:39:36 +0000
committerDaniel Jacobowitz <drow@false.org>2008-03-01 04:39:36 +0000
commitc03374d554a6d5f326a0d356a2e0918961bc1cfb (patch)
tree5e78e840af0460012c9368fbc4189b90654e407d /gdb/amd64-linux-nat.c
parent16fb4e2d3a147568e4e6b00c82adcf447ba10ffe (diff)
downloadgdb-c03374d554a6d5f326a0d356a2e0918961bc1cfb.zip
gdb-c03374d554a6d5f326a0d356a2e0918961bc1cfb.tar.gz
gdb-c03374d554a6d5f326a0d356a2e0918961bc1cfb.tar.bz2
* Makefile.in (i386-nat.o): Update.
* amd64-linux-nat.c (_initialize_amd64_linux_nat): Call i386_use_watchpoints. * i386-linux-nat.c (_initialize_i386_linux_nat): Call i386_use_watchpoints. * i386-nat.c (i386_stopped_data_address): Take two arguments. (i386_stopped_by_watchpoint): Update call. (i386_can_use_hw_breakpoint, i386_use_watchpoints): New. * config/i386/nm-i386.h: Conditionalize definitions on ! I386_WATCHPOINTS_IN_TARGET_VECTOR. (i386_use_watchpoints): Declare. (i386_stopped_data_address): Update. * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define. * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
Diffstat (limited to 'gdb/amd64-linux-nat.c')
-rw-r--r--gdb/amd64-linux-nat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c
index d927866..497c4ed 100644
--- a/gdb/amd64-linux-nat.c
+++ b/gdb/amd64-linux-nat.c
@@ -421,6 +421,8 @@ _initialize_amd64_linux_nat (void)
/* Fill in the generic GNU/Linux methods. */
t = linux_target ();
+ i386_use_watchpoints (t);
+
/* Override the GNU/Linux inferior startup hook. */
super_post_startup_inferior = t->to_post_startup_inferior;
t->to_post_startup_inferior = amd64_linux_child_post_startup_inferior;