From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: Marc Khouzam <marc.khouzam@ericsson.com>
Subject: Re: Does multi-exec make sense without target-async?
Date: Wed, 20 Apr 2011 19:34:00 -0000 [thread overview]
Message-ID: <201104202033.55140.pedro@codesourcery.com> (raw)
In-Reply-To: <F7CE05678329534C957159168FA70DEC577DBD1CCF@EUSAACMS0703.eamcs.ericsson.se>
On Wednesday 20 April 2011 19:35:26, Marc Khouzam wrote:
> There is no point in running multi-exec without
> target-async on, right?
>
> I mean, if I have two inferiors and I run one,
> there is no way for me to tell GDB to also
> run the second one? To do that, I have to
> interrupt the first to get the prompt.
> I originally thought of using 'continue -a'
> to resume all inferiors, but the -a flag
> is only for non-stop it seems.
Yeah, GDB's internal all-stop model is not a good
fit for multi-process. You either resume just
all threads of a process, or all threads of all
processes. It's controlled by this setting in all-stop mode:
(gdb) help set schedule-multiple
Set mode for resuming threads of all processes.
When on, execution commands (such as 'continue' or 'next') resume all
threads of all processes. When off (which is the default), execution
commands only resume the threads of the current process. The set of
threads that are resumed is further refined by the scheduler-locking
mode (see help set scheduler-locking).
Note, the setting applies to _all_ execution commands, like
scheduler-locking.
--
Pedro Alves
next prev parent reply other threads:[~2011-04-20 19:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 18:35 Marc Khouzam
2011-04-20 19:34 ` Pedro Alves [this message]
2011-04-20 19:37 ` Marc Khouzam
2011-04-20 20:13 ` Tom Tromey
2011-04-20 21:12 ` Pedro Alves
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=201104202033.55140.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=marc.khouzam@ericsson.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