From deb27e8df1910568e1f76185e79226b467b3bd31 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 13 Oct 2001 17:14:24 +0000 Subject: * config/s390/s390x.mt (GDB_MULTI_ARCH): Change to GDB_MULTI_ARCH_PARTIAL. * config/s390/s390.mt (GDB_MULTI_ARCH): Ditto. * config/s390/tm-linux.h (SKIP_TRAMPOLINE_CODE): Undefine definition from config/tm-linux.h. Allow gdbarch to override it. * config/tm-sysv4.h: Revert. Handled by tm-linux.h. --- gdb/ChangeLog | 10 ++++++++++ gdb/config/s390/s390.mt | 2 +- gdb/config/s390/s390x.mt | 2 +- gdb/config/s390/tm-linux.h | 6 ++++++ gdb/config/tm-sysv4.h | 4 ++-- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 86300ac4b6a..e34ba305708 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2001-10-13 Andrew Cagney + + * config/s390/s390x.mt (GDB_MULTI_ARCH): Change to + GDB_MULTI_ARCH_PARTIAL. + * config/s390/s390.mt (GDB_MULTI_ARCH): Ditto. + + * config/s390/tm-linux.h (SKIP_TRAMPOLINE_CODE): Undefine + definition from config/tm-linux.h. Allow gdbarch to override it. + * config/tm-sysv4.h: Revert. Handled by tm-linux.h. + 2001-09-26 Andrew Cagney From 2001-07-09 D.J. Barrow : diff --git a/gdb/config/s390/s390.mt b/gdb/config/s390/s390.mt index d1dfe9f82c2..87a5ba349c5 100644 --- a/gdb/config/s390/s390.mt +++ b/gdb/config/s390/s390.mt @@ -3,5 +3,5 @@ TM_FILE= tm-linux.h TDEPFILES=s390-tdep.o solib.o # Post 5.0 tdep-files TDEPFILES+=solib-svr4.o solib-legacy.o -GDB_MULTI_ARCH=2 +GDB_MULTI_ARCH=GDB_MULTI_ARCH_PARTIAL GDBSERVER_DEPFILES= low-linux.o s390-tdep.o s390-nat.o diff --git a/gdb/config/s390/s390x.mt b/gdb/config/s390/s390x.mt index 632fa5271de..310021dda50 100644 --- a/gdb/config/s390/s390x.mt +++ b/gdb/config/s390/s390x.mt @@ -3,7 +3,7 @@ TM_FILE= tm-linux.h TDEPFILES=s390-tdep.o solib.o # Post 5.0 tdep-files TDEPFILES+=solib-svr4.o solib-legacy.o -GDB_MULTI_ARCH=2 +GDB_MULTI_ARCH=GDB_MULTI_ARCH_PARTIAL GDBSERVER_DEPFILES= low-linux.o s390-tdep.o s390-nat.o # needed for gdbserver. MT_CFLAGS= -DCONFIG_ARCH_S390X diff --git a/gdb/config/s390/tm-linux.h b/gdb/config/s390/tm-linux.h index bb1e58728ce..e70b117c391 100644 --- a/gdb/config/s390/tm-linux.h +++ b/gdb/config/s390/tm-linux.h @@ -29,6 +29,12 @@ #define TARGET_ELF64 (gdbarch_tdep (current_gdbarch)->intreg_size==8) #include "config/tm-linux.h" + +/* Zap several macros defined in the above header so that multi-arch + can safely re-define them. The ``correct fix'' involves + eliminating either the above include or even this file. */ +#undef SKIP_TRAMPOLINE_CODE + #include "s390/tm-s390.h" diff --git a/gdb/config/tm-sysv4.h b/gdb/config/tm-sysv4.h index 1ed6bc3c139..35b95eb71f8 100644 --- a/gdb/config/tm-sysv4.h +++ b/gdb/config/tm-sysv4.h @@ -33,9 +33,9 @@ extern int in_plt_section (CORE_ADDR, char *); /* If PC is in a shared library trampoline code, return the PC where the function itself actually starts. If not, return 0. */ -#if (GDB_MULTI_ARCH <= GDB_MULTI_ARCH_PARTIAL) + #define SKIP_TRAMPOLINE_CODE(pc) find_solib_trampoline_target (pc) -#endif + /* It is unknown which, if any, SVR4 assemblers do not accept dollar signs in identifiers. The default in G++ is to use dots instead, for all SVR4 systems, so we make that our default also. FIXME: There should be some -- cgit v1.2.1