public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* [ feature request ] : software watchpoints, search byte pattern
@ 2003-05-28  4:53 Claudio Fontana
  2003-05-28 15:31 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Claudio Fontana @ 2003-05-28  4:53 UTC (permalink / raw)
  To: gdb

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

- search byte pattern: a memory pattern 'search'
function


Claudio Fontana

______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ feature request ] : software watchpoints, search byte pattern
  2003-05-28  4:53 [ feature request ] : software watchpoints, search byte pattern Claudio Fontana
@ 2003-05-28 15:31 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2003-05-28 15:31 UTC (permalink / raw)
  To: sick_soul; +Cc: gdb

> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-28 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28  4:53 [ feature request ] : software watchpoints, search byte pattern Claudio Fontana
2003-05-28 15:31 ` Eli Zaretskii

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).