This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why gdb-7.1 doesn't set hardware watchpoints on i7 CPU (amd64)?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]