aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/tm-linux.h
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-10-31 19:35:04 +0000
committerMichael Snyder <msnyder@vmware.com>2000-10-31 19:35:04 +0000
commit1a8629c73571e63f55313b354033825a7ef7cad1 (patch)
treeb0150c865c029162f4252d69a03e805e7d6c3263 /gdb/config/tm-linux.h
parent8637c0456a215e6f89fbb853ebb88485de5368df (diff)
downloadgdb-1a8629c73571e63f55313b354033825a7ef7cad1.zip
gdb-1a8629c73571e63f55313b354033825a7ef7cad1.tar.gz
gdb-1a8629c73571e63f55313b354033825a7ef7cad1.tar.bz2
2000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/sh/tm-linux.h: New file. Include generic tm-linux.h, plus tm-sh.h, then define SVR4_FETCH_LINK_MAP_OFFSETS to use the sh target function instead of the default link map offsets. * config/sh/sh.mt: Add solib.o and solib-svr4.o to TDEPFILES. Use sh/tm-linux.h instead of sh/tm-sh.h. * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): New function. Construct target-specific link map offsets. * i386-linux-tdep.c (i386_linux_svr4_fetch_link_map_offsets: New function. Construct target-specific link map offsets. * config/i386/tm-linux.h: Use above function instead of default. 2000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com> * config/i386/tm-linux.h: Remove definition of SVR4_SHARED_LIBS, and inclusion of solib.h. Move up into ../tm-linux.h. config/tm-linux.h: Define SVR4_SHARED_LIBS, include solib.h.
Diffstat (limited to 'gdb/config/tm-linux.h')
-rw-r--r--gdb/config/tm-linux.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/config/tm-linux.h b/gdb/config/tm-linux.h
index d1040ac..0b4db5a 100644
--- a/gdb/config/tm-linux.h
+++ b/gdb/config/tm-linux.h
@@ -34,3 +34,12 @@
/* We need this file for the SOLIB_TRAMPOLINE stuff. */
#include "tm-sysv4.h"
+
+/* We define SVR4_SHARED_LIBS unconditionally, on the assumption that
+ link.h is available on all linux platforms. For I386 and SH3/4,
+ we hard-code the information rather than use link.h anyway (for
+ the benefit of cross-debugging). We may move to doing that for
+ other architectures as well. */
+
+#define SVR4_SHARED_LIBS
+#include "solib.h" /* Support for shared libraries. */