Debugger watchpoints in UNIX ?

Marc J. Stephenson/140000;1C-22 marc at stingray..austin.ibm.com
Fri Mar 9 03:41:27 AEST 1990


In article <22567 at pasteur.Berkeley.EDU> luciano at canuck.Berkeley.EDU (Luciano Lavagno) writes:
>
> 
>Has anybody heard of an efficient implementation of watchpoints, i.e. 
>breakpoints activated whenever an arbitrary position in memory (e.g. a 
>field of a dynamically allocated structure) changes value ?
>Both dbx and saber can do something similar, but with horrendous 
>performance penalty ("stop address" commands).

If a debugger has to perform this operation in software, then it will
be extremely slow; if it has hardware assist, then it can be done reasonably
quickly.  If you are stuck doing with a software implementation, then you
will be better off if you can narrow down the scope of the operation (trace
expr at line, trace addr in procedure, etc...) to reduce the cost.  If it's
not possible to narrow the scope of the watch, then start it off and go get 
something to eat.

Marc Stephenson (marc at stingray.austin.ibm.com)
DISCLAIMER: The content of this posting is independent of official IBM position.
External: uunet!cs.utexas.edu!ibmaus!auschs!stingray.austin.ibm.com!marc
Internal: marc at stingray.austin.ibm.com 	VNET: MARC at AUSVM6  T/L: 793-3796



More information about the Comp.unix.questions mailing list