Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Pause
@ 2005-01-03 10:39 Russell Shaw
  2005-01-03 13:02 ` Pause Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Russell Shaw @ 2005-01-03 10:39 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-04  4:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-03 10:39 Pause Russell Shaw
2005-01-03 13:02 ` Pause Andreas Schwab
2005-01-03 13:05 ` Pause Russell Shaw
2005-01-04  4:39 ` Pause Eli Zaretskii
2005-01-04  4:43   ` Pause Russell Shaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox