From: Jon Ringle <jon.ringle@comdial.com>
To: SlickEdit Support <support@slickedit.com>, gdb@sources.redhat.com
Subject: Re: thread id is lost when viewing list of threads in slickedit
Date: Fri, 23 Sep 2005 20:32:00 -0000 [thread overview]
Message-ID: <200509231631.00570.jon.ringle@comdial.com> (raw)
In-Reply-To: <20050923195736.GA9159@nevyn.them.org>
On Friday 23 September 2005 03:57 pm, Daniel Jacobowitz wrote:
> On Fri, Sep 23, 2005 at 03:38:36PM -0400, Jon Ringle wrote:
> > CC'ing gdb mailing list this issue. It seems that via the MI interface
> > thread ID information is lost. Is there any way from the MI interface to
> > get the thread IDs that seem to be missing?
>
> The thread ID is not the third word, it's everything from the thread
> number to the thread PC. They're freeform, depending on the target, et
> cetera. So it's "thread 8201" and GDB tries to give you something
> useful.
Well, it certainly is useful when debugging a deadlock. As long as a mutex is
initialized as a recursive type, then if a deadlock occurs in an app, I can
attach to the process and look for threads that are waiting for a mutex. Then
I can find out the thread that currently owns the mutex that this thread is
waiting for by printing:
*((int*)(mutex.__m_owner) + 4)
This seems to work at least with linuxthreads.
> If you upgrade to NPTL, you'll find they get a lot less
> intelligible.
As long as they are unique and I can track them somehow in code, then it
doesn't matter too much to me.
prev parent reply other threads:[~2005-09-23 20:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ECCC6E9907B4CD4A83260A191A91F20E6AC697@wampa.office.slickedit.com>
2005-09-23 19:40 ` Jon Ringle
2005-09-23 19:57 ` Daniel Jacobowitz
2005-09-23 20:32 ` Jon Ringle [this message]
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=200509231631.00570.jon.ringle@comdial.com \
--to=jon.ringle@comdial.com \
--cc=gdb@sources.redhat.com \
--cc=support@slickedit.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