From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12897 invoked by alias); 19 Apr 2010 15:42:09 -0000 Received: (qmail 12883 invoked by uid 22791); 19 Apr 2010 15:42:07 -0000 X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hqemgate04.nvidia.com (HELO hqemgate04.nvidia.com) (216.228.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Apr 2010 15:42:01 +0000 Received: from hqnvupgp04.nvidia.com (Not Verified[172.20.161.48]) by hqemgate04.nvidia.com id ; Mon, 19 Apr 2010 08:39:29 -0700 Received: from hqemfe02.nvidia.com ([172.17.108.22]) by hqnvupgp04.nvidia.com (PGP Universal service); Mon, 19 Apr 2010 08:42:00 -0700 X-PGP-Universal: processed; by hqnvupgp04.nvidia.com on Mon, 19 Apr 2010 08:42:00 -0700 Received: from cvpn.wur-de.14-110.nvidia.com ([172.17.108.22]) by hqemfe02.nvidia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 19 Apr 2010 08:41:59 -0700 Date: Mon, 19 Apr 2010 15:42:00 -0000 From: Simo Melenius To: Daniel Jacobowitz cc: "gdb@sourceware.org" Subject: Re: Program image not relocated if it's a solib already loaded by dlopen() In-Reply-To: <20100419142148.GA26752@caradoc.them.org> Message-ID: References: <20100419142148.GA26752@caradoc.them.org> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes 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/msg00058.txt.bz2 On Mon, 19 Apr 2010, Daniel Jacobowitz wrote: > 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. Sorry for the confusion, gnueabi it is. And I have shared libraries, and I generally can debug them with gdb. > 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. Thank you, this is exactly the kind of clarification I was looking for. Just wasn't sure of what gdb is supposed to support in the end. kind regards, Simo -- Simo Melenius, NVIDIA Corporation, smelenius@nvidia.com, http://eu.nvidia.com