Why gdb-7.1 doesn't set hardware watchpoints on i7 CPU (amd64)?
Pedro Alves
pedro@codesourcery.com
Fri Jul 1 10:02:00 GMT 2011
On Friday 01 July 2011 00:40:07, Yuri wrote:
> This GDB was configured as "x86_64-unknown-freebsd8.2".
It doesn't looks like the x86-64/FreeBSD port knows about
hardware watchpoints. The 32-bit port seems to though:
$ grep i386_use_watchpoints *.c
amd64-linux-nat.c: i386_use_watchpoints (t);
go32-nat.c: i386_use_watchpoints (&go32_ops);
i386fbsd-nat.c: i386_use_watchpoints (t);
i386-linux-nat.c: i386_use_watchpoints (t);
i386-nat.c:i386_use_watchpoints (struct target_ops *t)
windows-nat.c: i386_use_watchpoints (&windows_ops);
The x86-64/FreeBSD target backend file is amd64fbsd-nat.c.
Try debugging gdb with itself, and put a breakpoint on
i386_use_watchpoints. If that isn't hit on gdb startup, then
the port definitely doesn't know about hardware watchpoints.
--
Pedro Alves
More information about the Gdb
mailing list