From: Doug Evans <dje@google.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Only try to load libthread_db when we load libpthread.
Date: Thu, 06 Oct 2011 20:08:00 -0000 [thread overview]
Message-ID: <CADPb22QDW7cPpZOGK-PDuJ1kkiPe=BYDie=5L7qw2ou+c_g_+g@mail.gmail.com> (raw)
In-Reply-To: <201110062056.25790.pedro@codesourcery.com>
On Thu, Oct 6, 2011 at 12:56 PM, Pedro Alves <pedro@codesourcery.com> wrote:
>
> On Thursday 06 October 2011 12:22:24, Pedro Alves wrote:
> > On Wednesday 05 October 2011 19:27:05, Doug Evans wrote:
> > > 2011-10-05 Doug Evans <dje@google.com>
> > >
> > > * linux-thread-db.c (thread_db_new_objfile): Only try to load
> > > libthread_db when we load libpthread.
> >
> > Makes sense to me.
> >
> > > No regressions in amd64-linux,
> > > but I can imagine it misses some cases.
> >
> > Yeah. I think we'll no longer activate thread_db when debugging core
> > files of static executables (e.g., a core of gdb.threads/staticthreads).
> > It works with live debugging since we call check_for_thread_db
> > from linux_child_post_attach/linux_child_post_startup_inferior.
> > Maybe moving that to an inferior_created observer in
> > linux-thread-db.c would work.
>
> And all the talk about executables made me realize something else. :-)
>
> For static threaded executables, we'll want to check for thread
> db when the symbols of the main executable are (re)loaded too.
> I don't recall off hand if there's a flag in the objfile to
> know that it's from the main executable though.
In what scenario?
[what would the user type?]
next prev parent reply other threads:[~2011-10-06 20:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-05 18:27 Doug Evans
2011-10-06 11:22 ` Pedro Alves
2011-10-06 19:56 ` Pedro Alves
2011-10-06 20:08 ` Doug Evans [this message]
2011-10-06 20:26 ` Pedro Alves
2011-10-06 21:56 ` Doug Evans
2011-10-06 22:06 ` Doug Evans
2011-10-07 11:09 ` Pedro Alves
2011-10-10 5:01 ` Doug Evans
2011-10-10 18:23 ` Pedro Alves
2011-10-11 3:38 ` Doug Evans
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='CADPb22QDW7cPpZOGK-PDuJ1kkiPe=BYDie=5L7qw2ou+c_g_+g@mail.gmail.com' \
--to=dje@google.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.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