From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: drow@false.org
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: target_create_inferior that does not call proceed
Date: Mon, 16 Jan 2006 20:59:00 -0000 [thread overview]
Message-ID: <200601162058.k0GKwdqv010416@elgar.sibelius.xs4all.nl> (raw)
In-Reply-To: <20060116200238.GA11566@nevyn.them.org> (message from Daniel Jacobowitz on Mon, 16 Jan 2006 15:02:38 -0500)
> Date: Mon, 16 Jan 2006 15:02:38 -0500
> From: Daniel Jacobowitz <drow@false.org>
>
> You'll notice that the call to observer_notify_inferior_created
> is removed from several target methods, and moved to the end of
> run_command_1. Consequently it's no longer possible to accidentally forget
> about a target - as we've obviously done for most of the targets I changed
> here. Less duplication is good!
Yay!
> I'll be needing to run some additional common code fragments between
> creating an inferior and starting it, for an upcoming project. Like most of
> GDB they need the target to be stopped; that's why I separated the create
> and proceed phases here.
That's the reason why you created post_create_inferior? If yes, then,
that answers the next question: Why did you introduce post_create_inferior?
> Another benefit of this is that I could finally implement a command I've
> wanted for ages when debugging startup code: create the inferior but don't
> run it, and give me my prompt back. That's not in this patch only because I
> couldn't think of a name for it! I'd call it "start", but well... already
> in use. Would anyone else find this useful? If so, would you care to
> suggest a name?
I vaguely remember there was a way to do that already, but when I last
wanted to use it, I couldn't find a way to do it. So yes, I'd welcome
such a command. Perhaps we could have something like:
(gdb) set stop-on-entry 1
after which "run" or "start" would stop at the entry point?
Mark
next prev parent reply other threads:[~2006-01-16 20:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-16 20:02 Daniel Jacobowitz
2006-01-16 20:59 ` Mark Kettenis [this message]
2006-01-16 21:01 ` Daniel Jacobowitz
2006-01-21 11:22 ` Eli Zaretskii
2006-01-21 15:13 ` Daniel Jacobowitz
2006-01-24 19:16 ` Daniel Jacobowitz
2006-01-24 21:45 ` Eli Zaretskii
2006-01-24 22:09 ` Daniel Jacobowitz
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=200601162058.k0GKwdqv010416@elgar.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
/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