This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Minor patch for AIX & HP-UX (0713)
- To: gdb-patches at sources dot redhat dot com
- Subject: Minor patch for AIX & HP-UX (0713)
- From: rbrown64 at csc dot com dot au
- Date: Mon, 16 Jul 2001 19:29:22 +1000
The following corrects one compilation error for infttrace.c
on hppa1.1-hp-hpux11.00, and provides a stub no_shared_libraries
for remote.c on HPUX and AIX 4.20. AIX also needed LDFLAGS=-Wl,-bbigtoc
to link gdb successfully.
My corporate assignment is in doubt if the no_shared_libraries stubs
don't count as a minor change. (Yanked directly from solib.c).
2001-07-16 Rodney Brown <rbrown64@csc.com.au>
* infttrace.c (child_thread_alive): Fix gdb_tid typo.
* somsolib.c (no_shared_libraries): Provide stub.
* xcoffsolib.c (no_shared_libraries): Provide stub.
--- infttrace.c.orig Mon Jul 16 12:33:23 2001
+++ infttrace.c Mon Jul 16 12:18:17 2001
@@ -3585,7 +3585,7 @@
int
child_thread_alive (ptid_t ptid)
{
- lwpid_t gdp_tid = PIDGET (ptid);
+ lwpid_t gdb_tid = PIDGET (ptid);
lwpid_t tid;
/* This spins down the lists twice.
--- somsolib.c.orig Mon Jul 16 20:12:40 2001
+++ somsolib.c Mon Jul 16 12:20:33 2001
@@ -1542,6 +1542,24 @@
}
+/* LOCAL FUNCTION
+
+ no_shared_libraries -- handle command to explicitly discard symbols
+ from shared libraries.
+
+ DESCRIPTION
+
+ Implements the command "nosharedlibrary", which discards symbols
+ that have been auto-loaded from shared libraries. Symbols from
+ shared libraries that were added by explicit request of the user
+ are not discarded. Also called from remote.c. */
+
+void
+no_shared_libraries (char *ignored, int from_tty)
+{
+ /* FIXME */
+}
+
void
_initialize_som_solib (void)
--- xcoffsolib.c.orig Fri May 4 15:15:28 2001
+++ xcoffsolib.c Mon Jul 16 11:49:44 2001
@@ -157,6 +157,24 @@
}
}
+/* LOCAL FUNCTION
+
+ no_shared_libraries -- handle command to explicitly discard symbols
+ from shared libraries.
+
+ DESCRIPTION
+
+ Implements the command "nosharedlibrary", which discards symbols
+ that have been auto-loaded from shared libraries. Symbols from
+ shared libraries that were added by explicit request of the user
+ are not discarded. Also called from remote.c. */
+
+void
+no_shared_libraries (char *ignored, int from_tty)
+{
+ /* FIXME */
+}
+
void
_initialize_solib (void)
{