From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27875 invoked by alias); 6 Aug 2008 14:21:01 -0000 Received: (qmail 27866 invoked by uid 22791); 6 Aug 2008 14:21:00 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Aug 2008 14:20:21 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 017AE98420; Wed, 6 Aug 2008 14:20:19 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id CA1AF98337; Wed, 6 Aug 2008 14:20:18 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KQjs9-00079F-TJ; Wed, 06 Aug 2008 10:20:17 -0400 Date: Wed, 06 Aug 2008 14:21:00 -0000 From: Daniel Jacobowitz To: John David Anglin Cc: gdb-patches@sourceware.org, randolph@tausq.org Subject: Re: [patch] Fixed shared library handling in solib-pa64.c Message-ID: <20080806142017.GA27139@caradoc.them.org> Mail-Followup-To: John David Anglin , gdb-patches@sourceware.org, randolph@tausq.org References: <20080805221125.A7C2F4E4A@hiauly1.hia.nrc.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080805221125.A7C2F4E4A@hiauly1.hia.nrc.ca> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00114.txt.bz2 On Tue, Aug 05, 2008 at 06:11:24PM -0400, John David Anglin wrote: > The change below fixes the problem referred to in the NEWS file regarding > the hppa64-hp-hpux11* target. The problem was a NULL load map pointer was > being passed in the dlgetmodinfo and dlgetname calls. This was causing > pa64_target_read_memory() to return 0, and as a result the dlgetmodinfo > call was failing. > > It's not entirely clear why the code to find the load map was failing > but I believe it is because the dynamic loader had not initialized the > map at the time the call to find the map was made. > > As described here , > it is not necessary to supply a memory read function for the calls to > dlgetmodinfo and dlgetname. This causes the dynamic loader to use its > own data structures to find the correct module. > > Getting rid of the code to find the load map results in some simplification. > > Please install if ok. Does this really do what you want it to? Looking at that HP man page, it looks like dlmodinfo will use "its own data structures" - i.e. GDB's load map, not the debugged program's. -- Daniel Jacobowitz CodeSourcery