This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Pause
- From: Russell Shaw <rjshaw at netspace dot net dot au>
- To: gdb at sources dot redhat dot com
- Date: Mon, 03 Jan 2005 21:43:42 +1100
- Subject: 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