Re: Pause

Russell Shaw
2005-01-04T04:43:34Z

Eli Zaretskii wrote:
>>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.)

shell sleep 1 should work well. Thanks.