This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Output a warning when inferior load in a stripped libpthread.so make multi-thread debug not ok
- From: teawater <teawater at gmail dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 11 Feb 2009 16:43:15 +0800
- Subject: Re: [RFA] Output a warning when inferior load in a stripped libpthread.so make multi-thread debug not ok
- References: <daef60380902110029s15874c26h839aa6224980de11@mail.gmail.com>
It test with Ubuntu-x86 is OK.
On Wed, Feb 11, 2009 at 16:29, teawater <teawater@gmail.com> wrote:
> Hi,
>
> I met a lot of people that have trouble with GDB multithread debug
> just because their libpthread.so is stripped.
> So I make a patch to output a warning when the libpthread.so is stripped.
>
> 2009-02-11 Hui Zhu <teawater@gmail.com>
>
> * linux-thread-db.c (LIBPTHREAD_SO): New macro for
> the name of libpthread.
> (check_for_thread_db): Add a argument "objfile".
> If td_ta_new_p return TD_NOLIBTHREAD
> and "objfile->obfd->filename" include LIBPTHREAD_SO,
> output a warning.
> (thread_db_new_objfile): Add a argument "objfile" to
> "check_for_thread_db".
> * linux-nat.h (check_for_thread_db): Ditto.
> * linux-nat.c (linux_child_post_attach): Ditto.
> (linux_child_post_startup_inferior): Ditto.
> (linux_child_follow_fork): Ditto.
>
>
> OK to in?
>
>
> Thanks,
> Hui
>