From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14346 invoked by alias); 27 Oct 2011 16:17:25 -0000 Received: (qmail 14331 invoked by uid 22791); 27 Oct 2011 16:17:22 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Oct 2011 16:17:07 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id D31072BB3E9; Thu, 27 Oct 2011 12:17:06 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IBFyJsf6jvPB; Thu, 27 Oct 2011 12:17:06 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id A78122BB32F; Thu, 27 Oct 2011 12:17:06 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 8F8A8145615; Thu, 27 Oct 2011 12:17:02 -0400 (EDT) Date: Thu, 27 Oct 2011 16:17:00 -0000 From: Joel Brobecker To: johnmb Cc: gdb@sourceware.org Subject: Re: Error while mapping shared library sections Message-ID: <20111027161702.GP335@adacore.com> References: <32732200.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32732200.post@talk.nabble.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00201.txt.bz2 > All the libraries are at the locations in the remote target as given > in the error messages so I don't understand why this is happening. I > did read in several google located accounts that this is fixed by > upgrading gdb to version 6.1; however I am using version 6.8 so it > can't be that. All the libraries should be available on the host as well, so that GDB can read the symbols from them. Exerpt from the GDB Manual: 20.3.2 Connecting to gdbserver Run gdb on the host system. First make sure you have the necessary symbol files. Load symbols for your application using the file command before you connect. Use set sysroot to locate target libraries (unless your gdb was compiled with the correct sysroot using --with-sysroot). -- Joel