This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How do I set a hard watchpoint with gdbserver?
- From: "Garrod, David" <dgarrod at enterasys dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 17 Sep 2009 19:29:25 -0400
- Subject: How do I set a hard watchpoint with gdbserver?
I'm using a configuration of gdb and gdbserver. Both the host (gdb) and the target (gdbserver) are running on Linux on Intel 486 or 586 sytstems.
I would like to be able to issue the command:
watch *(int*)addr
and have it set a "hard" watchpoint on the target. What seems to happening is that a soft watchpoint is being set since when I continue everything seems to hang until I ^C and remove the watchpoint.
How do I persuade gdbserver to set a hard watchpoint rather than a soft watchpoint? Breakpoints work fine in that they get set hard.
Thanks,
Dave Garrod