public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
To: sick_soul@yahoo.it
Cc: gdb@sources.redhat.com
Subject: Re: [ feature request ] : software watchpoints, search byte pattern
Date: Wed, 28 May 2003 15:31:00 -0000	[thread overview]
Message-ID: <8011-Wed28May2003183122+0300-eliz@elta.co.il> (raw)
In-Reply-To: <20030528045321.87485.qmail@web40412.mail.yahoo.com> (message from =?iso-8859-1?q?Claudio=20Fontana?= on Wed, 28 May 2003 06:53:21 +0200 (CEST))

> Date: Wed, 28 May 2003 06:53:21 +0200 (CEST)
> From: =?iso-8859-1?q?Claudio=20Fontana?= <sick_soul@yahoo.it>
> 
> Hello, 
>  do you think these features can be added in the
> following versions?
> 
> - software watchpoints: rwatch and awatch which, if
> hardware breakpoints are not available, revert to
> software ones

To implement software watchpoints, GDB single-steps the program being
debugged, and checks after each instruction whether the data being
watched has changed its value.  It is impossible to implement read
watchpoints this way, since there's no way to know whether the last
instruction accessed the data being watched: reading the data doesn't
change its value.

For that reason, rwatch and awatch are only available if
hardware-assisted watchpoints are available.

      reply	other threads:[~2003-05-28 15:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28  4:53 Claudio Fontana
2003-05-28 15:31 ` Eli Zaretskii [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=8011-Wed28May2003183122+0300-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    --cc=gdb@sources.redhat.com \
    --cc=sick_soul@yahoo.it \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).