Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: David Daney <ddaney@avtrex.com>
Cc: gdb@sourceware.org
Subject: Re: Adding watchpoint functions to target vector vs. 	TARGET*WATCHPOINT  macros
Date: Tue, 09 Sep 2008 12:17:00 -0000	[thread overview]
Message-ID: <20080909121638.GA23510@caradoc.them.org> (raw)
In-Reply-To: <48C60739.8070000@avtrex.com>

On Mon, Sep 08, 2008 at 10:18:49PM -0700, David Daney wrote:
> Daniel pointed out that all the watch related functions could be added
> directly to the target vector instead of writing target specific
> TARGET*WATCHPOINT macros.  While this is true, there is a small drawback.
> 
> The target vector is not installed until the inferior is started, so any
> watches added before this happens end up being soft-watches.

While this is true, it is a general limitation of GDB and is much less
of a problem than the ones associated with the macros; please use the
target vector.

> Ideally in when the first resume() is issued to the inferior the
> watchpoints would be re-evaluated to see if some (or all) of them could
> be converted to hardware watchpoints.  There might have to be an
> additional target hook to allow for this.

Right now there's never conversion from software to hardware
watchpoints.  But I think this would be reasonable to do.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2008-09-09 12:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09  5:19 David Daney
2008-09-09 12:17 ` Daniel Jacobowitz [this message]

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=20080909121638.GA23510@caradoc.them.org \
    --to=drow@false.org \
    --cc=ddaney@avtrex.com \
    --cc=gdb@sourceware.org \
    /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