From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16596 invoked by alias); 11 Feb 2009 08:43:23 -0000 Received: (qmail 16588 invoked by uid 22791); 11 Feb 2009 08:43:23 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_102,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.190) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Feb 2009 08:43:18 +0000 Received: by ti-out-0910.google.com with SMTP id y8so64521tia.12 for ; Wed, 11 Feb 2009 00:43:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.110.2.2 with SMTP id 2mr11914297tib.29.1234341795462; Wed, 11 Feb 2009 00:43:15 -0800 (PST) In-Reply-To: References: Date: Wed, 11 Feb 2009 08:43:00 -0000 Message-ID: Subject: Re: [RFA] Output a warning when inferior load in a stripped libpthread.so make multi-thread debug not ok From: teawater To: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00234.txt.bz2 It test with Ubuntu-x86 is OK. On Wed, Feb 11, 2009 at 16:29, teawater 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 > > * 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 >