* i386-nat.c (i386_stopped_data_address): Also check that
hitted watch register is not vacant.
gdb/testsuite ChangeLog entry:
New test for two watchpoints, with disabling of
the first inserted.
* testsuite/gdb.base/watchpoints.c: New file.
* testsuite/gdb.base/watchpoints.exp: New file.
+2009-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * i386-nat.c (i386_stopped_data_address): Also check that
+ hitted watch register is not vacant.
+
2009-09-23 Joel Brobecker <brobecker@adacore.com>
* record.c (record_open, record_store_registers, record_xfer_partial):
that GDB doesn't call the target_stopped_data_address
method except for data watchpoints. In other words, I'm
being paranoiac. */
- && I386_DR_GET_RW_LEN (i) != 0)
+ && I386_DR_GET_RW_LEN (i) != 0
+ /* This third condition makes sure DRi is not vacant, this
+ avoids false positives in windows-nat.c. */
+ && !I386_DR_VACANT (i))
{
addr = dr_mirror[i];
rc = 1;
+2009-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ New test for two watchpoints, with disabling of
+ the first inserted.
+ * testsuite/gdb.base/watchpoints.c: New file.
+ * testsuite/gdb.base/watchpoints.exp: New file.
+
2009-09-22 Tom Tromey <tromey@redhat.com>
* gdb.python/py-function.exp: Add regression tests.