Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Marc Khouzam <marc.khouzam@ericsson.com>
To: "'Pedro Alves'" <pedro@codesourcery.com>,
	       "'gdb@sourceware.org'"	<gdb@sourceware.org>
Subject: RE: Does multi-exec make sense without target-async?
Date: Wed, 20 Apr 2011 19:37:00 -0000	[thread overview]
Message-ID: <F7CE05678329534C957159168FA70DEC577DBD1DCE@EUSAACMS0703.eamcs.ericsson.se> (raw)
In-Reply-To: <201104202033.55140.pedro@codesourcery.com>

> -----Original Message-----
> From: Pedro Alves [mailto:pedro@codesourcery.com] 
> Sent: Wednesday, April 20, 2011 3:34 PM
> To: gdb@sourceware.org
> Cc: Marc Khouzam
> Subject: Re: Does multi-exec make sense without target-async?
> 
> 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.

Thanks!
Looks like I want that option 'on', to give some kind of value
to all-stop mode.  I'll give it a go.


  reply	other threads:[~2011-04-20 19:37 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
2011-04-20 19:37   ` Marc Khouzam [this message]
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=F7CE05678329534C957159168FA70DEC577DBD1DCE@EUSAACMS0703.eamcs.ericsson.se \
    --to=marc.khouzam@ericsson.com \
    --cc=gdb@sourceware.org \
    --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