This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Why gdb-7.1 doesn't set hardware watchpoints on i7 CPU (amd64)?
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb at sourceware dot org
- Cc: Yuri <yuri at rawbw dot com>
- Date: Fri, 1 Jul 2011 11:02:08 +0100
- Subject: Re: Why gdb-7.1 doesn't set hardware watchpoints on i7 CPU (amd64)?
- References: <4D0AD70D.9020702@rawbw.com> <CALoOobPkcR6zJXXYQ3O-bP=gwW0CoyGLkfNhbC5k1n8xbnDQ-g@mail.gmail.com> <4E0D0957.6040003@rawbw.com>
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