Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Mundt <paul.mundt@timesys.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb@sources.redhat.com
Subject: Re: Gdbserver Threading Issues
Date: Fri, 06 Dec 2002 14:15:00 -0000	[thread overview]
Message-ID: <1039216800.15470.10.camel@Origin> (raw)
In-Reply-To: <20021206220925.GA14064@nevyn.them.org>

[-- Attachment #1: Type: text/plain, Size: 1188 bytes --]

On Fri, 2002-12-06 at 17:09, Daniel Jacobowitz wrote:
> > The log with remote debugging turned on is attached..
> 
> So: what are you doing in GDB to get this log; what is happening; what
> do you expect to happen?  I don't see an obvious problem.

Same thing as what I explained in my intial post.

The test app starts up and spawns some arbitrary number of threads,
which in turn sleep for a bit and then return.. in this case, 2 threads.

When running this test app under gdbserver, the only thread being
reported to gdb is the manager thread.. (ie, [New thread x (LWP y)]).

Because of this, I can't do 'info threads' and see anything other then
the manager thread .. and thus can't really do any thread-specific
debugging.

If I run natively, this isn't an issue.

If I insert a breakpoint in the function being run by the threads, then
everything comes up fine. Then I can break after the threads are created
and do per-thread debugging without any issues.. but only if I place a
breakpoint there.

If this isn't clear enough, I can toss together a brief log of what I'm
doing.

Regards,

-- 
Paul Mundt <paul.mundt@timesys.com>
TimeSys Corporation

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2002-12-06 22:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-06 11:20 Paul Mundt
2002-12-06 11:28 ` Daniel Jacobowitz
2002-12-06 13:07   ` Paul Mundt
2002-12-06 13:16     ` Daniel Jacobowitz
2002-12-06 13:20       ` Paul Mundt
2002-12-06 13:23         ` Daniel Jacobowitz
2002-12-06 13:33           ` Paul Mundt
2002-12-06 13:35             ` Daniel Jacobowitz
2002-12-06 13:59           ` Paul Mundt
2002-12-06 14:08             ` Daniel Jacobowitz
2002-12-06 14:15               ` Paul Mundt [this message]
2002-12-06 17:15                 ` Daniel Jacobowitz

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=1039216800.15470.10.camel@Origin \
    --to=paul.mundt@timesys.com \
    --cc=drow@mvista.com \
    --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