From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 698 invoked by alias); 4 May 2009 03:31:57 -0000 Received: (qmail 688 invoked by uid 22791); 4 May 2009 03:31:56 -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.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 May 2009 03:31:50 +0000 Received: from spaceape8.eur.corp.google.com (spaceape8.eur.corp.google.com [172.28.16.142]) by smtp-out.google.com with ESMTP id n443VkTH010869 for ; Sun, 3 May 2009 20:31:47 -0700 Received: from qw-out-2122.google.com (qwb9.prod.google.com [10.241.193.73]) by spaceape8.eur.corp.google.com with ESMTP id n443Viaj002689 for ; Sun, 3 May 2009 20:31:45 -0700 Received: by qw-out-2122.google.com with SMTP id 9so2449156qwb.47 for ; Sun, 03 May 2009 20:31:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.74.79 with SMTP id t15mr2953910qcj.2.1241407904173; Sun, 03 May 2009 20:31:44 -0700 (PDT) In-Reply-To: References: <8ac60eac0904201019g7ba8056bx5e84e6bfdf5935d8@mail.gmail.com> <20090422172517.GA17235@caradoc.them.org> <8ac60eac0904221810x24763ecaj4a888927b766e7f7@mail.gmail.com> <8ac60eac0904230001w1afd9179wcb76e1cfd7f3f386@mail.gmail.com> <8ac60eac0904291330m78b43c47p1cc9b8379e31e923@mail.gmail.com> <20090430185551.GB10734@adacore.com> Date: Mon, 04 May 2009 03:31:00 -0000 Message-ID: <8ac60eac0905032031i401dbe2eke5608b67d13d8732@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: Joel Brobecker , tromey@redhat.com, Thiago Jung Bauermann , gdb-patches ml , Eli Zaretskii 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/msg00054.txt.bz2 On Sun, May 3, 2009 at 5:06 PM, Hui Zhu wrote: > If we can let user create a slink here, =A0User can create slink to > right lib with themselves. =A0Maybe they don't need set > libthread_db_search_path then. Hui, I think you are loosing track of what this patch is for. The goal of this patch is to allow GDB to "just work" in the presence of multiple incompatible libthread_db's. If you remove libthread_db_search_path, then *no matter* which symlinks you create, GDB will not work for some executables, unless you also reset LD_LIBRARY_PATH, or reset the symlink before each invocation, neither of which is automatic or desireable. Cheers, --=20 Paul Pluzhnikov