delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/05/11:15:51

From: mdruiter AT cs DOT vu DOT nl
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fsdb crashes post emacs
Date: 5 Aug 1998 14:46:28 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Message-ID: <6q9r84$fj$2@star.cs.vu.nl>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980805130858 DOT 11953B-100000 AT is>
NNTP-Posting-Host: sloep09.cs.vu.nl
User-Agent: tin/pre-1.4-980730 (UNIX) (SunOS/5.5.1 (sun4u))
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> :|You need to set a data breakpoint, which will fire when a certain address 
> :|is overwritten.  GDB has a `watch' command which does just that.  
> :|Unfortunately, I have never been able to get it to work (did anybody?).

I have used it, succesfully most of the time. AFAIK, you need to:
- set a breakpoint, which must be fired first,
- set a watchpoint, which can be fired next.

$ br    *0x0code-address
$ watch *0x0data-address

-- 
Groeten, Michel.        http://www.cs.vu.nl/~mdruiter
  ____________
  \  /====\  /          "You know, Beavis, you need things that suck,
   \/      \/           to have things that are cool", Butt-Head.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019