This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]