From: Tom Tromey <tromey@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org, Jan Kratochvil <jan.kratochvil@redhat.com>
Subject: Re: RFC: lazily call save_current_space_and_thread
Date: Thu, 10 Mar 2011 20:09:00 -0000 [thread overview]
Message-ID: <m3bp1jarqx.fsf@fleche.redhat.com> (raw)
In-Reply-To: <201103081802.35770.pedro@codesourcery.com> (Pedro Alves's message of "Tue, 8 Mar 2011 18:02:35 +0000")
Tom> "run" appears to work in the background, which is mysterious to me.
Pedro> Hmm. It shouldn't. Well, behind the scenes it does run
Pedro> asynchronously, but only "run&" should work in the background,
Pedro> from the user's perpective.
Pedro> Boo, something's seriously broken :-/ :
I looked into this.
What happens is that fetch_inferior_event calls normal_stop whenever a
subprocess exits. E.g., I see this:
Starting program: /usr/bin/make clean
[...]
[New process 13249]
[...]
[Inferior 2 (process 13249) exited normally]
... at which point I get the (gdb) prompt.
The initial `make' process and the other things it invokes continue
running. I thought this was due to non-stop, but disabling that didn't
seem to change anything.
What I expected to happen is that after my `run', I should not get a
prompt back until either (1) some event occurs (breakpoint, SEGV,
whatever), or (2) the inferior and all its subprocesses have exited.
This would require some extra logic when handling exit events, since
AFAICT there is nothing to support this in there right now.
I would appreciate your comments on this.
Once I stop the inferiors, it is hard to restart them nicely. I guess
this is where the I/T set idea comes in -- you need a way to be able to
say "continue all inferiors".
Tom
next prev parent reply other threads:[~2011-03-10 16:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-04 19:52 Tom Tromey
2011-03-05 12:52 ` Jan Kratochvil
2011-03-07 19:54 ` Tom Tromey
2011-03-08 17:14 ` Tom Tromey
2011-03-08 17:16 ` Jan Kratochvil
2011-03-08 17:23 ` Pedro Alves
2011-03-08 17:49 ` Tom Tromey
2011-03-08 17:56 ` Pedro Alves
2011-03-08 18:02 ` Tom Tromey
2011-03-08 18:15 ` Pedro Alves
2011-03-08 18:37 ` Pedro Alves
2011-03-08 20:01 ` Tom Tromey
2011-03-08 23:02 ` Pedro Alves
2011-03-10 20:09 ` Tom Tromey [this message]
2011-03-08 19:54 ` Tom Tromey
2011-03-08 19:54 ` Pedro Alves
2011-03-09 14:43 ` Tom Tromey
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=m3bp1jarqx.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=pedro@codesourcery.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