From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24962 invoked by alias); 30 Apr 2002 00:14:07 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24954 invoked from network); 30 Apr 2002 00:14:06 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 30 Apr 2002 00:14:06 -0000 Received: from romulus.sfbay.redhat.com (romulus.sfbay.redhat.com [172.16.27.251]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id RAA27374; Mon, 29 Apr 2002 17:14:04 -0700 (PDT) Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g3U0E0418144; Mon, 29 Apr 2002 17:14:00 -0700 Date: Mon, 29 Apr 2002 17:14:00 -0000 From: Kevin Buettner Message-Id: <1020430001400.ZM18143@localhost.localdomain> In-Reply-To: "Kevin \"Squail\" Endres" "RE: arm gdbserver and shared object function resolution" (Apr 29, 4:34pm) References: <43CB1396676FD4119F03001083FD2994F5F17C@neptune.kirkland.local> To: "Kevin \"Squail\" Endres" , gdb@sources.redhat.com Subject: Re: arm gdbserver and shared object function resolution MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-04/txt/msg00502.txt.bz2 On Apr 29, 4:34pm, Kevin \Squail\ Endres wrote: > note: I can now load the symbols from the file on the host (and thus resolve > the function to an address and set a breakpoint). However - if i target the > remote target after setting the breakpoint i get the following error: > > warning: shared library handler failed to enable breakpoint. is the issue > with the current cross target gdb or is it with gdbserver? It is critical that GDB be able to find your target's dynamic linker and load its symbols. To do this, you normally use ``set solib-absolute-prefix'' to tell gdb where to find the sys-root for the target's libraries. If you're not doing this, then perhaps that's your problem? It is also important for the libraries in the sys-root location on the host to be exactly the same as those found on the target. All kinds of strange things can happen if this is not the case. Kevin