From: Russell Shaw <rjshaw@netspace.net.au>
Cc: gdb@sources.redhat.com
Subject: Re: Pause
Date: Mon, 03 Jan 2005 13:05:00 -0000 [thread overview]
Message-ID: <41D943FF.6080209@netspace.net.au> (raw)
In-Reply-To: <41D921DE.6030109@netspace.net.au>
Russell Shaw wrote:
> 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
On second thoughts, i'll modify simulavr so that it sets itself up
properly before it forks (instead of using the shell fork &).
next prev parent reply other threads:[~2005-01-03 13:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-03 10:39 Pause Russell Shaw
2005-01-03 13:02 ` Pause Andreas Schwab
2005-01-03 13:05 ` Russell Shaw [this message]
2005-01-04 4:39 ` Pause Eli Zaretskii
2005-01-04 4:43 ` Pause Russell Shaw
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41D943FF.6080209@netspace.net.au \
--to=rjshaw@netspace.net.au \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox