From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4428 invoked by alias); 24 Mar 2006 20:23:23 -0000 Received: (qmail 4420 invoked by uid 22791); 24 Mar 2006 20:23:23 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 24 Mar 2006 20:23:21 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FMsoV-00077y-HB; Fri, 24 Mar 2006 15:23:15 -0500 Date: Fri, 24 Mar 2006 21:07:00 -0000 From: Daniel Jacobowitz To: Randolph Chung Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] solib-som.c fix for hpux Message-ID: <20060324202315.GB26748@nevyn.them.org> Mail-Followup-To: Randolph Chung , gdb-patches@sources.redhat.com References: <442382D1.4010104@tausq.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <442382D1.4010104@tausq.org> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00274.txt.bz2 On Fri, Mar 24, 2006 at 01:25:37PM +0800, Randolph Chung wrote: > Dan J's change to solib handling > (http://sources.redhat.com/ml/gdb-patches/2006-01/msg00198.html) exposed > a probably unfounded assumption in the SOM solib code that assumes that > the solib_create_inferior_hook will always be called before current_sos. > As a result, gdb cvs on HPUX 32-bit would always error out when trying > to run any executable with the message "Debugging dynamic executables > loaded via the hpux8 dld.sl is not supported.". The most straightforward > fix is to remove the error and handle the case where there is not yet a > link map; that is what I have in the patch below. OTOH this does remove > the error message if anybody does try to run gdb on hpux8 (!!!) Grr! I tried to catch all of these. Some assume that add is called first... others assume that create is called first... > 2006-03-24 Randolph Chung > > * solib-som.c (link_map_start): Don't error out if there is > not yet a link map. It seems OK to me, but I don't want to approve SOM changes; maybe get Kevin's opinion, since this is a shared library topic? -- Daniel Jacobowitz CodeSourcery