From: Andrew Cagney <cagney@gnu.org>
To: Fabian Cenedese <Cenedese@indel.ch>
Cc: gdb@sources.redhat.com
Subject: Re: MI thread commands
Date: Fri, 15 Oct 2004 02:36:00 -0000 [thread overview]
Message-ID: <416ECD13.8010001@gnu.org> (raw)
In-Reply-To: <5.2.0.9.1.20041014090451.01d2d250@NT_SERVER>
> Hi
>
> I didn't get a reply on this one so I thought I try again.
>
>
>>>What was the intention behind -thread-info? It's not explained in the
>>>manual and also not implemented (so much to "Read the source, Luke").
>>>Should this bring the info that is available with "info threads" but for only
>>>one thread? Is there another possibility to get e.g. the thread name?
>>>
>>>I made my try with the -thread-list-all-threads command, but I'm not
>>>sure about the output format as it's nowhere described (Hey Bob, thanks
>>>for your rules :) Is this sensible? Or is it one level too much (the
>>>"threads=" level)?
>>>
>>>^done,threads=[thread={id="12",pid="945832",extra=" Name: UserTaskName, State: 0
>>>002, Priority: 0007",frame={func="CTaskTemplateClass::Action",args=[{name="this"
>>>,value="0xe6ea8"}],file="N:/Temp/ToThrow/psoism/applicat/src/CTaskTemplateClass.
>>>cpp",line="454"}},thread={id="11",pid="956152",extra=" Name: IMP_MAS, State: 000
>>>9, Priority: 0000",frame={func="CINOSTask::MainLoop",args=[{name="this",value="0
>>>xe96f8"}],file="N:/Temp/ToThrow/psoism/os/inos/Src/Inos.cpp",line="856"}}..(snipped)..]
>
>
> Another problem I have is the active thread. If the info thread command is issued
> on the CLI gdb will indicate the selected thread with a '*' in front of it. Obviously
> that's not possible with the mi. How can this information be returned? Is there
> a way to add it to the -thread-list-all-threads, e.g. with a new field "active" only
> present in the active thread? Or should it be omitted in this command and put
> into a new/other mi command? e.g. the above mentioned -thread-info?
Does a GUI, where all threads are displayed equal, have an "active"
thread? I guess you're looking to identify the thread at the head of
the list of threads that had a reason to stop - breakpoint, signal, ...
If MI clients think it's useful, it can be added.
Andrew
next prev parent reply other threads:[~2004-10-14 19:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-01 14:58 Fabian Cenedese
2004-10-14 18:53 ` Fabian Cenedese
2004-10-15 2:36 ` Andrew Cagney [this message]
2004-10-15 12:50 ` Alain Magloire
[not found] <1097854821.16300.ezmlm@sources.redhat.com>
2004-10-15 18:50 ` Jim Ingham
2004-10-18 21:05 ` Alain Magloire
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=416ECD13.8010001@gnu.org \
--to=cagney@gnu.org \
--cc=Cenedese@indel.ch \
--cc=gdb@sources.redhat.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