Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* MI -thread-list-ids output issue
@ 2006-02-16 15:48 Vladimir Prus
  2006-02-16 15:56 ` Bob Rossi
  0 siblings, 1 reply; 4+ messages in thread
From: Vladimir Prus @ 2006-02-16 15:48 UTC (permalink / raw)
  To: gdb


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








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

end of thread, other threads:[~2006-02-16 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-16 15:48 MI -thread-list-ids output issue Vladimir Prus
2006-02-16 15:56 ` Bob Rossi
2006-02-16 16:03   ` Daniel Jacobowitz
2006-02-16 16:06   ` Vladimir Prus

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