From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29726 invoked by alias); 12 May 2009 16:42:27 -0000 Received: (qmail 29716 invoked by uid 22791); 12 May 2009 16:42:26 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 May 2009 16:42:20 +0000 Received: from zps38.corp.google.com (zps38.corp.google.com [172.25.146.38]) by smtp-out.google.com with ESMTP id n4CGgFH4022167 for ; Tue, 12 May 2009 17:42:16 +0100 Received: from qyk15 (qyk15.prod.google.com [10.241.83.143]) by zps38.corp.google.com with ESMTP id n4CGfSwC008370 for ; Tue, 12 May 2009 09:42:14 -0700 Received: by qyk15 with SMTP id 15so167662qyk.8 for ; Tue, 12 May 2009 09:42:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.80.78 with SMTP id s14mr1271418qck.101.1242146533239; Tue, 12 May 2009 09:42:13 -0700 (PDT) In-Reply-To: References: <8ac60eac0904201019g7ba8056bx5e84e6bfdf5935d8@mail.gmail.com> <8ac60eac0904301618j61051e9du38b34afbc7ed64a3@mail.gmail.com> <8ac60eac0904301719w33175de2w8d1d0fd80bf0feb4@mail.gmail.com> <200905111412.59493.pedro@codesourcery.com> <8ac60eac0905111108g26096302lb902cd414b5a6790@mail.gmail.com> Date: Tue, 12 May 2009 16:42:00 -0000 Message-ID: <8ac60eac0905120942ycd19a5fha5d0fe89cb9865ea@mail.gmail.com> Subject: Re: [patch][rfc] Allow GDB to search for the right libthread_db.so.1 From: Paul Pluzhnikov To: Hui Zhu Cc: Pedro Alves , gdb-patches@sourceware.org, Joel Brobecker , tromey@redhat.com, Thiago Jung Bauermann , Eli Zaretskii , Daniel Jacobowitz Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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-05/txt/msg00251.txt.bz2 On Tue, May 12, 2009 at 12:16 AM, Hui Zhu wrote: > 1. =A0Could you please add a debug interface like "set debug > linux-thread 1" to let linux-thread-db.c output some debug message? This will already happen with 'set verbose on': try_thread_db_load_1 (void *handle) ... if (info_verbose) printf_unfiltered (_("td_ta_new failed: %s\n"), thread_db_err_str (err)); try_thread_db_load (const char *library) ... if (info_verbose) printf_unfiltered (_("Trying host libthread_db library: %s.\n"), library); etc, etc. I don't think a separate "debug linux-thread" is really necessary, though it is trivial to add if others "vote" for it. > 2. =A0I still peddle my idea: let libthread-db-search-path can support > single file. =A0And a make a patch follow your patch. Wish you like it. > :) I don't object to the idea per se; but I believe it really solves a non-existant problem, and makes documentation more confusing. > --- > =A0linux-thread-db.c | =A0 13 +++++++++++-- > =A01 file changed, 11 insertions(+), 2 deletions(-) > > --- a/linux-thread-db.c > +++ b/linux-thread-db.c > @@ -642,6 +642,7 @@ thread_db_load_search (void) Unrelated question: how did you generate above diff? Do you maintain a separate git mirror? Thanks, --=20 Paul Pluzhnikov