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

On Fri, Dec 06, 2002 at 06:20:00PM -0500, Paul Mundt wrote:
> 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.

Actually it's the _initial_ thread, not the manager thread, most
likely.

> 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.

You won't get [New thread x (LWP y)] messages at thread creation time
if you're using gdbserver; you'll get them when you stop for some other
reason and do info threads, generally.  If you never stop the running
application you won't see them.

But are you stopping the application some other way and not having
threads show up?  A precise example session would be appreciated.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


      reply	other threads:[~2002-12-07  1: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
2002-12-06 17:15                 ` Daniel Jacobowitz [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=20021207011547.GA21192@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=paul.mundt@timesys.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