This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] tm-rs6000.h: Conditionally include solib.h
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 15 Dec 2001 18:07:30 -0700
- Subject: [PATCH] tm-rs6000.h: Conditionally include solib.h
I've just committed the following patch which fixes the build problem
found by Andrew earlier in the week. The patch below is only a short
term solution. Long term, we don't want any of the *-[tn]m.h files
to be including solib.h. But more infrastructure works needs to be
completed first...
* config/rs6000/tm-rs6000.h (solib.h): Conditionally include.
Index: config/rs6000/tm-rs6000.h
===================================================================
RCS file: /cvs/src/src/gdb/config/rs6000/tm-rs6000.h,v
retrieving revision 1.14
diff -u -p -r1.14 tm-rs6000.h
--- tm-rs6000.h 2001/12/09 21:39:53 1.14
+++ tm-rs6000.h 2001/12/16 00:54:30
@@ -119,3 +119,10 @@ extern CORE_ADDR (*rs6000_find_toc_addre
child process. */
extern void (*rs6000_set_host_arch_hook) (int);
+
+/* We need solib.h for building cross debuggers. However, we don't want
+ to clobber any special solib support required by native debuggers, so
+ only include solib.h if SOLIB_ADD is not defined. */
+#ifndef SOLIB_ADD
+#include "solib.h"
+#endif