Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [MI] -thread-select using the --thread option
@ 2010-02-11 20:27 Marc Khouzam
  2010-02-12 10:30 ` Vladimir Prus
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Khouzam @ 2010-02-11 20:27 UTC (permalink / raw)
  To: 'gdb@sourceware.org'

Hi,

I just realized that DSF-GDB (with GDB 7.0), when forced to use -thread-select,
is adding the --thread option to it.  So I see

  -thread-select --thread 1 1

This will happen before using a CLI command ('jump'), for example.

I'm assuming I should just turn off the use of the --thread option for 
-thread-select.  I just wanted to check with you experts if it truly
is that simple.

Of course, I would do the same for the --frame option
and for the -stack-select-frame command.

Thanks

Marc


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [MI] -thread-select using the --thread option
  2010-02-11 20:27 [MI] -thread-select using the --thread option Marc Khouzam
@ 2010-02-12 10:30 ` Vladimir Prus
  2010-02-12 14:54   ` Marc Khouzam
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Prus @ 2010-02-12 10:30 UTC (permalink / raw)
  To: gdb

Marc Khouzam wrote:

> Hi,
> 
> I just realized that DSF-GDB (with GDB 7.0), when forced to use -thread-select,
> is adding the --thread option to it.  So I see
> 
>   -thread-select --thread 1 1
> 
> This will happen before using a CLI command ('jump'), for example.
> 
> I'm assuming I should just turn off the use of the --thread option for
> -thread-select.  I just wanted to check with you experts if it truly
> is that simple.

Well, the officially blessed way is to never use -thread-select in
the first place ;-) If you are going to use it, then well, omitting
--thread seems reasonable.

- Volodya


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [MI] -thread-select using the --thread option
  2010-02-12 10:30 ` Vladimir Prus
@ 2010-02-12 14:54   ` Marc Khouzam
  2010-02-12 14:57     ` Vladimir Prus
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Khouzam @ 2010-02-12 14:54 UTC (permalink / raw)
  To: 'Vladimir Prus', 'gdb@sources.redhat.com'


> -----Original Message-----
> From: gdb-owner@sourceware.org 
> [mailto:gdb-owner@sourceware.org] On Behalf Of Vladimir Prus
> Sent: Friday, February 12, 2010 5:30 AM
> To: gdb@sources.redhat.com
> Subject: Re: [MI] -thread-select using the --thread option
> 
> Marc Khouzam wrote:
> 
> > Hi,
> > 
> > I just realized that DSF-GDB (with GDB 7.0), when forced to 
> use -thread-select,
> > is adding the --thread option to it.  So I see
> > 
> >   -thread-select --thread 1 1
> > 
> > This will happen before using a CLI command ('jump'), for example.
> > 
> > I'm assuming I should just turn off the use of the --thread 
> option for
> > -thread-select.  I just wanted to check with you experts if it truly
> > is that simple.
> 
> Well, the officially blessed way is to never use -thread-select in
> the first place ;-) If you are going to use it, then well, omitting
> --thread seems reasonable.

Thanks

Whenever I use an MI command I use --thread instead of -thread-select,
but when I have to use a CLI command I have to use -thread-select.
But that does not happen very often (actually, I don't have an
example anymore, since I noticed that -exec-jump exists)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [MI] -thread-select using the --thread option
  2010-02-12 14:54   ` Marc Khouzam
@ 2010-02-12 14:57     ` Vladimir Prus
  2010-02-12 15:01       ` Marc Khouzam
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Prus @ 2010-02-12 14:57 UTC (permalink / raw)
  To: Marc Khouzam; +Cc: gdb

On Friday 12 February 2010 17:54:44 you wrote:

> 
> > -----Original Message-----
> > From: gdb-owner@sourceware.org 
> > [mailto:gdb-owner@sourceware.org] On Behalf Of Vladimir Prus
> > Sent: Friday, February 12, 2010 5:30 AM
> > To: gdb@sources.redhat.com
> > Subject: Re: [MI] -thread-select using the --thread option
> > 
> > Marc Khouzam wrote:
> > 
> > > Hi,
> > > 
> > > I just realized that DSF-GDB (with GDB 7.0), when forced to 
> > use -thread-select,
> > > is adding the --thread option to it.  So I see
> > > 
> > >   -thread-select --thread 1 1
> > > 
> > > This will happen before using a CLI command ('jump'), for example.
> > > 
> > > I'm assuming I should just turn off the use of the --thread 
> > option for
> > > -thread-select.  I just wanted to check with you experts if it truly
> > > is that simple.
> > 
> > Well, the officially blessed way is to never use -thread-select in
> > the first place ;-) If you are going to use it, then well, omitting
> > --thread seems reasonable.
> 
> Thanks
> 
> Whenever I use an MI command I use --thread instead of -thread-select,
> but when I have to use a CLI command I have to use -thread-select.

Why? I though that:

	-interpreter-exec --thread 1 "cli" "the command"

should work just fine.

- Volodya


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [MI] -thread-select using the --thread option
  2010-02-12 14:57     ` Vladimir Prus
@ 2010-02-12 15:01       ` Marc Khouzam
  0 siblings, 0 replies; 5+ messages in thread
From: Marc Khouzam @ 2010-02-12 15:01 UTC (permalink / raw)
  To: 'Vladimir Prus'; +Cc: 'gdb@sources.redhat.com'

> 
> > Whenever I use an MI command I use --thread instead of 
> -thread-select,
> > but when I have to use a CLI command I have to use -thread-select.
> 
> Why? I though that:
> 
> 	-interpreter-exec --thread 1 "cli" "the command"
> 
> should work just fine.

You're right.  I have an outstanding bug to use that format instead.
I had forgotten about it :-O

Thanks


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-12 15:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-11 20:27 [MI] -thread-select using the --thread option Marc Khouzam
2010-02-12 10:30 ` Vladimir Prus
2010-02-12 14:54   ` Marc Khouzam
2010-02-12 14:57     ` Vladimir Prus
2010-02-12 15:01       ` Marc Khouzam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox