From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 304 invoked by alias); 5 May 2009 02:54:52 -0000 Received: (qmail 32761 invoked by uid 22791); 5 May 2009 02:54:51 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,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.185) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 May 2009 02:54:44 +0000 Received: by ti-out-0910.google.com with SMTP id a1so410595tib.12 for ; Mon, 04 May 2009 19:54:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.110.16.15 with SMTP id 15mr475494tip.53.1241492081461; Mon, 04 May 2009 19:54:41 -0700 (PDT) In-Reply-To: <8ac60eac0905032031i401dbe2eke5608b67d13d8732@mail.gmail.com> References: <8ac60eac0904201019g7ba8056bx5e84e6bfdf5935d8@mail.gmail.com> <8ac60eac0904221810x24763ecaj4a888927b766e7f7@mail.gmail.com> <8ac60eac0904230001w1afd9179wcb76e1cfd7f3f386@mail.gmail.com> <8ac60eac0904291330m78b43c47p1cc9b8379e31e923@mail.gmail.com> <20090430185551.GB10734@adacore.com> <8ac60eac0905032031i401dbe2eke5608b67d13d8732@mail.gmail.com> Date: Tue, 05 May 2009 02:54:00 -0000 Message-ID: Subject: Re: [patch][rfc] Allow GDB to search for the right libthread_db.so.1 From: Hui Zhu To: Paul Pluzhnikov 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-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/msg00073.txt.bz2 On Mon, May 4, 2009 at 11:31, Paul Pluzhnikov wrot= e: > 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. > Without this function, what I need to do is: mv /lib/tls/i686/cmov/libthread_db.so.1 /lib/tls/i686/cmov/libthread_db.so.= 1.old mv right_libthread_db /lib/tls/i686/cmov/libthread_db.so.1 Actually, I think libthread_db_search_path is cool function, not because it can't be substituted, but because it can make gdb more powerful. But if after we have this function, we still need: > even in this case, it's easy to create a symbolic link in a user > area, and update the path to point to that directory. I don't think it is very well. Sorry for my words is directly. Thanks, Hui