[fpc-devel]Re: Another problem with fpc v1.1

Jonas Maebe jonas at zeus.rug.ac.be
Thu Jun 27 08:00:25 CEST 2002


On donderdag, juni 27, 2002, at 02:59 , Sergey Korshunoff wrote:

> Currendtly I do not work under Win32 -> I can not use TurboDebugger
> to catch a change of tinputfile.name when we compile a pp.pas.
> Can someone (who work under Win32) to try this?  Can a gdb
> to use i386 hardware to catch memory change?

Yes. First you need to get the address of the (max 4 bytes large) value 
you want to watch:

p @<expression>

Next, add a watchpoint:

watch plongint(0x<address from previous command>)^

If you use the expression directly, you get all sorts of trouble when 
some part of it goes out of scope. Use "awatch" instead of "watch" if 
you also want to break on reads.


Jonas





More information about the fpc-devel mailing list