Re: Pause

Andreas Schwab
2005-01-03T13:02:17Z

Russell Shaw <rjshaw@netspace.net.au> writes:

> Does gdb have a "pause" or delay command?

There is nothing predefined, but as a workaround you could use a counting
loop. Of course, you need to calibrate it first.

> I need one here:
>
> define simul
> detach
> shell killall -sHUP simulavr
> shell simulavr -g -p 4242 -d atmega16 -c 16000000 loader_02.bin &
> file loader_02
set $i = 0
while ($i++ < 100000)
end
> target remote localhost:4242
> end
>

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃŸe 5, 90409 NÃ¼rnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."