From: Daniel Jacobowitz <drow@mvista.com>
To: "H . J . Lu" <hjl@lucon.org>
Cc: GDB <gdb@sources.redhat.com>
Subject: Re: Does gdb 5.2 work with statically linked thread application under Linux?
Date: Wed, 06 Mar 2002 23:48:00 -0000 [thread overview]
Message-ID: <20020307024841.A24509@nevyn.them.org> (raw)
In-Reply-To: <20020306233050.A31848@lucon.org>
On Wed, Mar 06, 2002 at 11:30:50PM -0800, H . J . Lu wrote:
> Does gdb 5.2 work with statically linked thread application under
> Linux? It doesn't work for me at all. It doesn't know any thread.
> I have a patch which works for gdb 5.1. Now it doesn't work for 5.2
> anymore.
My fault, I think.
The problem is that in a dynamically linked binary
thread_db_new_objfile will be called for every library is loaded. At
this point current_target is "child", so target_has_execution is true.
But with a static binary, the first time the function is called objfile
is NULL, and the second time current_target is "exec" (which has
target_has_execution set false).
Perhaps target_has_execution was not the right check after all, if
"exec" has it set false (which makes fairly little sense to me...) or
perhaps we need to call the hook again later. Michael, any idea?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2002-03-07 7:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-06 23:30 H . J . Lu
2002-03-06 23:48 ` Daniel Jacobowitz [this message]
2002-03-07 13:39 ` H . J . Lu
2002-03-07 14:02 ` Daniel Jacobowitz
2002-03-07 15:08 ` H . J . Lu
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=20020307024841.A24509@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=hjl@lucon.org \
/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