This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pause


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]