Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA/RFC] Fix "info shared" on 32-bit (SOM) HP-UX
@ 2004-12-05 18:46 Mark Kettenis
  2004-12-05 19:49 ` Randolph Chung
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2004-12-05 18:46 UTC (permalink / raw)
  To: randolph, brobecker; +Cc: gdb-patches

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA/RFC] Fix "info shared" on 32-bit (SOM) HP-UX
  2004-12-05 18:46 [RFA/RFC] Fix "info shared" on 32-bit (SOM) HP-UX Mark Kettenis
@ 2004-12-05 19:49 ` Randolph Chung
  2004-12-05 20:04   ` Mark Kettenis
  0 siblings, 1 reply; 3+ messages in thread
From: Randolph Chung @ 2004-12-05 19:49 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: brobecker, gdb-patches

> 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?

yes, ok with me. i started working on solib-som.[ch] but got
sidetracked.... will try to get back to it soon.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA/RFC] Fix "info shared" on 32-bit (SOM) HP-UX
  2004-12-05 19:49 ` Randolph Chung
@ 2004-12-05 20:04   ` Mark Kettenis
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2004-12-05 20:04 UTC (permalink / raw)
  To: randolph; +Cc: brobecker, gdb-patches

   Date: Sun, 5 Dec 2004 11:37:17 -0800
   From: Randolph Chung <randolph@tausq.org>

   > 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?

   yes, ok with me. i started working on solib-som.[ch] but got
   sidetracked.... will try to get back to it soon.

Great!  Thanks!  I committed the patch.

Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-05 19:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-05 18:46 [RFA/RFC] Fix "info shared" on 32-bit (SOM) HP-UX Mark Kettenis
2004-12-05 19:49 ` Randolph Chung
2004-12-05 20:04   ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox