* Mismatch in threadGroupId of different -list-thread-groups output
@ 2010-06-22 15:56 Marc Khouzam
0 siblings, 0 replies; only message in thread
From: Marc Khouzam @ 2010-06-22 15:56 UTC (permalink / raw)
To: 'gdb@sourceware.org'
Hi,
I just noticed something with HEAD with respect to thread group ids.
When I'm debugging a process, the groupId returned by
-list-thread-groups --available
^done,groups=[
...
{id="11210",type="process",description="/local/lmckhou/testing/a.out",user="lmckhou"}
...
is not the same for that same process as the one returned by
-list-thread-groups
^done,groups=[{id="i1",type="process",pid="11210",executable="/local/lmckhou/testing/a.out",cores=["2"]}]
I'm not sure of all the impacts of this or if it was by design.
One impact I can think of is that when presenting the user with a
list of available processes to attach to, it is interesting
to know which of those processes are already being debugged (maybe
to exclude them from the list), so a correlation between
the two command results is useful.
Of course, I can map 'pid' of one output with 'id' of the other, but I know
the 'id' is supposed to be opaque. Any idea on what the way forward
should be for this?
BTW, having the pid in the the output of "-list-thread-groups --available"
is very useful, even if it part of the opaque id. It would be bad to remove
that information.
With this in mind, one solution that I think may be good would be to add
a 'pid' field to the outptu of "-list-thread-groups --available".
Thanks
Marc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-22 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-22 15:56 Mismatch in threadGroupId of different -list-thread-groups output Marc Khouzam
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).