summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-10-13 17:14:24 +0000
committerAndrew Cagney <cagney@redhat.com>2001-10-13 17:14:24 +0000
commitdeb27e8df1910568e1f76185e79226b467b3bd31 (patch)
treeca8c92c9ef38535d7311aa2bae24c084531bd368
parent6f12425875086a457567cba2737e28bab5e57aaa (diff)
downloadgdb-deb27e8df1910568e1f76185e79226b467b3bd31.tar.gz
* 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.
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/config/s390/s390.mt2
-rw-r--r--gdb/config/s390/s390x.mt2
-rw-r--r--gdb/config/s390/tm-linux.h6
-rw-r--r--gdb/config/tm-sysv4.h4
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 <ac131313@redhat.com>
+
+ * 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 <ac131313@redhat.com>
From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
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