This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Pause
- From: Andreas Schwab <schwab at suse dot de>
- To: Russell Shaw <rjshaw at netspace dot net dot au>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 03 Jan 2005 14:02:06 +0100
- Subject: Re: Pause
- References: <41D921DE.6030109@netspace.net.au>
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."