From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27012 invoked by alias); 18 Apr 2012 11:50:31 -0000 Received: (qmail 26992 invoked by uid 22791); 18 Apr 2012 11:50:29 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Apr 2012 11:49:42 +0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/13989] gdb invalid search order for shared libraries by cross debuging Date: Wed, 18 Apr 2012 11:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palves at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00034.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13989 Pedro Alves changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |palves at redhat dot com --- Comment #1 from Pedro Alves 2012-04-18 11:45:16 UTC --- I'm guessing this use case wasn't originally considered, because it doesn't look like how set sysroot/solib-search-path are meant to be used. (gdb) help set solib-search-path Set the search path for loading non-absolute shared library symbol files. ^^^^^^^^^^^^ This takes precedence over the environment variables PATH and LD_LIBRARY_PATH. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This command is there mostly to help targets like Windows that don't report to the debugger the full path to the shared library. GNU/Linux always works with full patchs, such as "/usr/lib/libjpeg.so.8". The normal use of "set sysroot" is to point that at a directory that contains _all_ the libraries the target reports as loaded (or simply, the copy of the target's whole root filesystem). IOW, make the sysroot wholly self contained (you can use symlinks though), and forget about solib-search-path. Or, with GDB >= 7.0, point the sysroot at "remote:", and GDB will fetch the libraries from the target automatically (but won't work in the end if you strip the copies of the libraries on the target, as GDB will work with the stripped copies then). -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.