public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Remote thread infos
@ 2004-09-20  9:48 Fabian Cenedese
  2004-11-16  2:21 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Cenedese @ 2004-09-20  9:48 UTC (permalink / raw)
  To: gdb

Hi

The remote protocol can ask for thread info and more info (qThreadExtraInfo).
I couldn't find an explicit description about these fields in the manual.
However in the source code these fields are evaluated as follows:

sprintf(&display_buf[n], " State: %s,", threadinfo.display);
sprintf(&display_buf[n], " Priority: %s", threadinfo.more_display);

It's quite impossible to use these fields for other info as they are explicitely
prepended with "State" and "Priority". But the manual says: "... may
contain anything that the target OS thinks is interesting for gdb to tell
the user about the thread." Is there a possibility to use these texts
from the CLI as well as MI without the prepended strings? If not
shouldn't the manual say what these texts are for?

I know that I can take the strings and remove the leading word, I
just thought I mention this inconsistency with the manual.

Thanks

bye  Fabi


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

* Re: Remote thread infos
  2004-09-20  9:48 Remote thread infos Fabian Cenedese
@ 2004-11-16  2:21 ` Andrew Cagney
  2004-11-16 10:55   ` Fabian Cenedese
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2004-11-16  2:21 UTC (permalink / raw)
  To: Fabian Cenedese; +Cc: gdb

Fabian Cenedese wrote:
> Hi
> 
> The remote protocol can ask for thread info and more info (qThreadExtraInfo).
> I couldn't find an explicit description about these fields in the manual.
> However in the source code these fields are evaluated as follows:
> 
> sprintf(&display_buf[n], " State: %s,", threadinfo.display);
> sprintf(&display_buf[n], " Priority: %s", threadinfo.more_display);
> 
> It's quite impossible to use these fields for other info as they are explicitely
> prepended with "State" and "Priority". But the manual says: "... may
> contain anything that the target OS thinks is interesting for gdb to tell
> the user about the thread."

Hmm, yes.  I think they have something to do with eCos?

> Is there a possibility to use these texts
> from the CLI as well as MI without the prepended strings? If not
> shouldn't the manual say what these texts are for?

Would KOD be useful?  Or a more descriptive packet?

Andrew

> I know that I can take the strings and remove the leading word, I
> just thought I mention this inconsistency with the manual.
> 
> Thanks
> 
> bye  Fabi
> 
> 
> 

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

* Re: Remote thread infos
  2004-11-16  2:21 ` Andrew Cagney
@ 2004-11-16 10:55   ` Fabian Cenedese
  0 siblings, 0 replies; 3+ messages in thread
From: Fabian Cenedese @ 2004-11-16 10:55 UTC (permalink / raw)
  To: gdb


>>The remote protocol can ask for thread info and more info (qThreadExtraInfo).
>>I couldn't find an explicit description about these fields in the manual.
>>However in the source code these fields are evaluated as follows:
>>sprintf(&display_buf[n], " State: %s,", threadinfo.display);
>>sprintf(&display_buf[n], " Priority: %s", threadinfo.more_display);
>>It's quite impossible to use these fields for other info as they are explicitely
>>prepended with "State" and "Priority". But the manual says: "... may
>>contain anything that the target OS thinks is interesting for gdb to tell
>>the user about the thread."
>
>Hmm, yes.  I think they have something to do with eCos?

Don't know, I have never worked with eCos.

>>Is there a possibility to use these texts
>>from the CLI as well as MI without the prepended strings? If not
>>shouldn't the manual say what these texts are for?
>
>Would KOD be useful?  Or a more descriptive packet?

Sorry, what means KOD?

>>I know that I can take the strings and remove the leading word, I
>>just thought I mention this inconsistency with the manual.
>>Thanks

bye  Fabi


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

end of thread, other threads:[~2004-11-16  7:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-20  9:48 Remote thread infos Fabian Cenedese
2004-11-16  2:21 ` Andrew Cagney
2004-11-16 10:55   ` Fabian Cenedese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).