From: Mark Kettenis <kettenis@gnu.org>
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
Date: Sun, 05 Dec 2004 18:46:00 -0000 [thread overview]
Message-ID: <200412051709.iB5H9nKI001392@elgar.sibelius.xs4all.nl> (raw)
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 <kettenis@gnu.org>
* 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
next reply other threads:[~2004-12-05 17:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-05 18:46 Mark Kettenis [this message]
2004-12-05 19:49 ` Randolph Chung
2004-12-05 20:04 ` Mark Kettenis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200412051709.iB5H9nKI001392@elgar.sibelius.xs4all.nl \
--to=kettenis@gnu.org \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sources.redhat.com \
--cc=randolph@tausq.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox