This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] solib-som.c fix for hpux
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: randolph at tausq dot org
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 24 Mar 2006 23:58:33 +0100 (CET)
- Subject: Re: [RFA] solib-som.c fix for hpux
- References: <442382D1.4010104@tausq.org>
> Date: Fri, 24 Mar 2006 13:25:37 +0800
> From: Randolph Chung <randolph@tausq.org>
>
> 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 <tausq@debian.org>
>
> * solib-som.c (link_map_start): Don't error out if there is
> not yet a link map.