Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: Yuri <yuri@rawbw.com>
Subject: Re: Why gdb-7.1 doesn't set hardware watchpoints on i7 CPU (amd64)?
Date: Fri, 01 Jul 2011 10:02:00 -0000	[thread overview]
Message-ID: <201107011102.09027.pedro@codesourcery.com> (raw)
In-Reply-To: <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


  reply	other threads:[~2011-07-01 10:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-17  3:20 Yuri
2010-12-27  5:07 ` Paul Pluzhnikov
2011-06-30 22:31   ` Yuri
2011-06-30 22:50     ` Paul Pluzhnikov
2011-06-30 23:40       ` Yuri
2011-07-01 10:02         ` Pedro Alves [this message]
2011-06-30 22:27 ` Yuri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201107011102.09027.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=yuri@rawbw.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox