Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: gdb@sources.redhat.com
Subject: MI -thread-list-ids output issue
Date: Thu, 16 Feb 2006 15:48:00 -0000	[thread overview]
Message-ID: <dt26rh$mf2$1@sea.gmane.org> (raw)


Hello!

At the moment, the response to -thread-list-ids looks like this:

  ^done,thread-ids={thread-id="3",thread-id="2",thread-id="1"},


The grammar says that {} is a tuple, but not that all fields in the tuple
have the same name, so it can be only indexed by integer. While this is
allowed by the grammar, it's pretty inconvenient.

Essentially this will require me to add, in MI parser I use, special
operation "treat this as list, even though it looks like a tuple", which is
pretty nasty.

Maybe, it's still possible to change this output to be:

  ^done,thread-ids=["3","2","1"]

Or, if changing the existing output is deemed impossible even in this case,
what about:

  ^done,threads=["3", "2", "1"],
        thread-ids={thread-id="3",thread-id="2",thread-id="1"},

?

- Volodya








             reply	other threads:[~2006-02-16 15:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-16 15:48 Vladimir Prus [this message]
2006-02-16 15:56 ` Bob Rossi
2006-02-16 16:03   ` Daniel Jacobowitz
2006-02-16 16:06   ` Vladimir Prus

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='dt26rh$mf2$1@sea.gmane.org' \
    --to=ghost@cs.msu.su \
    --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