Mail Archives: djgpp/1998/08/05/11:15:51
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 -