Pause

Eli Zaretskii eliz@gnu.org
Tue Jan 4 04:39:00 GMT 2005


> Date: Mon, 03 Jan 2005 21:43:42 +1100
> From: Russell Shaw <rjshaw@netspace.net.au>
> 
> Does gdb have a "pause" or delay command?  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
> 
>      < delay 300ms >
> 
>      target remote localhost:4242
> end

Would "shell sleep 1" do the trick?  (If 1 second is too long, you
could write a simple program that called nanosleep or some such to
sleep with finer granularity.)



More information about the Gdb mailing list