From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6856 invoked by alias); 5 Dec 2004 17:10:10 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6789 invoked from network); 5 Dec 2004 17:10:03 -0000 Received: from unknown (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 5 Dec 2004 17:10:03 -0000 Received: from elgar.sibelius.xs4all.nl (elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id iB5HA2gX029173; Sun, 5 Dec 2004 18:10:02 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (localhost [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6) with ESMTP id iB5HA2mZ001398; Sun, 5 Dec 2004 18:10:02 +0100 (CET) (envelope-from kettenis@elgar.sibelius.xs4all.nl) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6/Submit) id iB5H9nKI001392; Sun, 5 Dec 2004 18:09:49 +0100 (CET) Date: Sun, 05 Dec 2004 18:46:00 -0000 Message-Id: <200412051709.iB5H9nKI001392@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: randolph@tausq.org, brobecker@adacore.com CC: gdb-patches@sources.redhat.com Subject: [RFA/RFC] Fix "info shared" on 32-bit (SOM) HP-UX X-SW-Source: 2004-12/txt/msg00129.txt.bz2 Randolph, Joel, I noticed that "info shared" is broken on 32-bit HP-UX targets right now. The reason is that both solib.c and somsolib.c provide an implementation of "info shared" and solib.c wins. Since 32-bit shared libararies aren't handled by solib.c this results in GDB telling us that no shared libraries have been loaded. The attached patch tries to fix this by leaving out solib.c and providing no_shared_libraries() in somsolib.c, but only if PA_SOM_ONLY is defined. This should all be temporary; we should make an effort *soon* to get somsolib.c integrated in the solib.c framework of handling shared libraries. But at least this allows us to get a reasonable baseline. OK? Mark Index: ChangeLog from Mark Kettenis * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function. * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o. Index: somsolib.c =================================================================== RCS file: /cvs/src/src/gdb/somsolib.c,v retrieving revision 1.38 diff -u -p -r1.38 somsolib.c --- somsolib.c 13 Nov 2004 02:19:03 -0000 1.38 +++ somsolib.c 5 Dec 2004 17:00:26 -0000 @@ -1614,3 +1614,10 @@ som_solib_thread_start_addr (struct so_l { return so->som_solib.tsd_start_addr; } + +#ifdef PA_SOM_ONLY +void +no_shared_libraries (char *ignored, int from_tty) +{ +} +#endif Index: config/pa/hppahpux.mt =================================================================== RCS file: /cvs/src/src/gdb/config/pa/hppahpux.mt,v retrieving revision 1.4 diff -u -p -r1.4 hppahpux.mt --- config/pa/hppahpux.mt 13 Nov 2004 02:19:03 -0000 1.4 +++ config/pa/hppahpux.mt 5 Dec 2004 17:00:26 -0000 @@ -1,4 +1,4 @@ # Target: HP PA-RISC running hpux MT_CFLAGS = -DPA_SOM_ONLY=1 -TDEPFILES= hppa-tdep.o hppa-hpux-tdep.o somread.o hpread.o somsolib.o solib.o +TDEPFILES= hppa-tdep.o hppa-hpux-tdep.o somread.o hpread.o somsolib.o DEPRECATED_TM_FILE= tm-hppah.h