From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10892 invoked by alias); 24 Mar 2006 22:58:39 -0000 Received: (qmail 10884 invoked by uid 22791); 24 Mar 2006 22:58:38 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 24 Mar 2006 22:58:37 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k2OMwX71021267; Fri, 24 Mar 2006 23:58:33 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id k2OMwXQt012218; Fri, 24 Mar 2006 23:58:33 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id k2OMwX3C021712; Fri, 24 Mar 2006 23:58:33 +0100 (CET) Date: Fri, 24 Mar 2006 23:17:00 -0000 Message-Id: <200603242258.k2OMwX3C021712@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: randolph@tausq.org CC: gdb-patches@sources.redhat.com In-reply-to: <442382D1.4010104@tausq.org> (message from Randolph Chung on Fri, 24 Mar 2006 13:25:37 +0800) Subject: Re: [RFA] solib-som.c fix for hpux References: <442382D1.4010104@tausq.org> 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/msg00280.txt.bz2 > Date: Fri, 24 Mar 2006 13:25:37 +0800 > From: Randolph Chung > > 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 (!!!) > > Comments? ok to check in? In any case, that error message is wrong; we really don't support HP-UX 8 anymore. So go ahead and slap this in. > 2006-03-24 Randolph Chung > > * solib-som.c (link_map_start): Don't error out if there is > not yet a link map.