From 3bb4004d7327e614d05cb83d61749162a9a3a655 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Sun, 16 Dec 2001 00:59:58 +0000 Subject: [PATCH] Conditionally include solib.h. --- gdb/ChangeLog | 4 ++++ gdb/config/rs6000/tm-rs6000.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 367df172b0..f7b7753b0d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2001-12-15 Kevin Buettner + + * config/rs6000/tm-rs6000.h (solib.h): Conditionally include. + 2001-12-15 Andrew Cagney * gdbarch.c: Re-generate. diff --git a/gdb/config/rs6000/tm-rs6000.h b/gdb/config/rs6000/tm-rs6000.h index efd96e598e..015a5928b6 100644 --- a/gdb/config/rs6000/tm-rs6000.h +++ b/gdb/config/rs6000/tm-rs6000.h @@ -119,3 +119,10 @@ extern CORE_ADDR (*rs6000_find_toc_address_hook) (CORE_ADDR); 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 -- 2.11.0