From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6257 invoked by alias); 5 May 2009 11:42:13 -0000 Received: (qmail 6248 invoked by uid 22791); 5 May 2009 11:42:12 -0000 X-SWARE-Spam-Status: No, hits=1.1 required=5.0 tests=AWL,BAYES_00,KAM_STOCKTIP,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.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 May 2009 11:42:06 +0000 Received: by ti-out-0910.google.com with SMTP id a1so442249tib.12 for ; Tue, 05 May 2009 04:42:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.110.52.1 with SMTP id z1mr528041tiz.23.1241523723649; Tue, 05 May 2009 04:42:03 -0700 (PDT) In-Reply-To: <20090505033835.GH10734@adacore.com> References: <8ac60eac0904221810x24763ecaj4a888927b766e7f7@mail.gmail.com> <8ac60eac0904230001w1afd9179wcb76e1cfd7f3f386@mail.gmail.com> <8ac60eac0904291330m78b43c47p1cc9b8379e31e923@mail.gmail.com> <20090430185551.GB10734@adacore.com> <8ac60eac0905032031i401dbe2eke5608b67d13d8732@mail.gmail.com> <20090505033835.GH10734@adacore.com> Date: Tue, 05 May 2009 11:42:00 -0000 Message-ID: Subject: Re: [patch][rfc] Allow GDB to search for the right libthread_db.so.1 From: Hui Zhu To: Joel Brobecker Cc: Paul Pluzhnikov , 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/msg00077.txt.bz2 On Tue, May 5, 2009 at 11:38, Joel Brobecker wrote: >> Actually, I think libthread_db_search_path is cool function, =A0not >> 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. > > The problem is that you don't necessarily have root priviledges > to do the move that you describe. You might also want to *not* > disturb the rest of the system by moving out the thread_db lib > on the host just to put the one that was used on the target. I forgot it. :P sudo mv /lib/tls/i686/cmov/libthread_db.so.1 /lib/tls/i686/cmov/libthread_db.so.1.old sudo mv right_libthread_db /lib/tls/i686/cmov/libthread_db.so.1 > > On the other hand, my understanding is that it's unlikely that > this library will have a different name; so the feature of being > able to specify the name in the search path is only hypothetical. > And even if it happens, it's easy to create a symbolic link in > an area that you have write access to (say, your home directory), > and then point the search path to link. If the filesystem is readonly, they will need it.