From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12599 invoked by alias); 19 Apr 2010 14:22:08 -0000 Received: (qmail 12584 invoked by uid 22791); 19 Apr 2010 14:22:06 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Apr 2010 14:21:58 +0000 Received: (qmail 20026 invoked from network); 19 Apr 2010 14:21:55 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 19 Apr 2010 14:21:55 -0000 Date: Mon, 19 Apr 2010 14:22:00 -0000 From: Daniel Jacobowitz To: Simo Melenius Cc: gdb@sourceware.org Subject: Re: Program image not relocated if it's a solib already loaded by dlopen() Message-ID: <20100419142148.GA26752@caradoc.them.org> Mail-Followup-To: Simo Melenius , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: 2010-04/txt/msg00054.txt.bz2 On Fri, Apr 16, 2010 at 10:20:39PM +0300, Simo Melenius wrote: > Assume I'm developing ``libfoo.so'' and am not particularly > interested in ``foo'' itself. So, I start ``foo'', attach gdbserver > to it, and invoke gdb on the host platform as follows: > > $ arm-eabi-gdb libfoo.so First of all, I assume this is an arm-linux-gnueabi GDB. If it were an ARM EABI gdb, you wouldn't get shared library support at all. But that may be your problem. Secondly, don't do this. If you want to debug libfoo.so, just make sure GDB has search paths set up, and start GDB on the executable. Otherwise, it can not find the load map. No shared library support is going to work properly in this case. -- Daniel Jacobowitz CodeSourcery