From 2d5177f34b54d8f7abb2622ad4f6742f171d1ea7 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 367df172b02..f7b7753b0de 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 efd96e598e2..015a5928b6f 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.30.2