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


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.



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