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]

Pause


Hi,
I set up .gdbinit so that with a single command, gdb can
load a new file to be debugged, and start a simulator:

define simul
    detach
    shell killall -sHUP simulavr
    shell simulavr -g -p 4242 -d atmega16 -c 16000000 loader_02.bin &
    file loader_02
    target remote localhost:4242
end

This works ok if i type one line at a time. If i type "simul", the
commands happen too fast and gdb gives an error message before the
simulator has started. 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


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