summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikola Veljkovic <Nikola.Veljkovic@imgtec.com>2016-06-02 19:30:53 +0200
committerNikola Veljkovic <Nikola.Veljkovic@imgtec.com>2016-06-24 21:25:36 +0000
commit3bf3cd4d142637442a412ee7ead383fc65742ed1 (patch)
tree2e75db830aafe2c3549149558b94e635c2249ecb
parent43bcff9192b20e538b093d80fdb3bbb68b325a5d (diff)
downloadgdb-3bf3cd4d142637442a412ee7ead383fc65742ed1.tar.gz
Define DT_MIPS_RLD_MAP_REL in code, until renamed in sysrootndk-r13-beta1
Gdbserver is using prebuilts/ndk sysroot, where we haven't updated the tag. There we have old DT_MIPS_RLD_MAP2 tag defined (just a different name, same value). Until sysroot used to build gdbserver is fixed, we need to define the tag directly in the source code. Updating the tag is the job of: https://android-review.googlesource.com/233345. Workaround is based on change: I4dd0969c1a6f847fd5b11b1206c7bd6ef1f30137 Verified on: mips, mips64, arm, arm64 emulators. Change-Id: I552654458d506e219d19c7345d127c6bb2337997
-rw-r--r--gdb-7.11/gdb/gdbserver/linux-low.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb-7.11/gdb/gdbserver/linux-low.c b/gdb-7.11/gdb/gdbserver/linux-low.c
index 4c46e94fe..c81a472fd 100644
--- a/gdb-7.11/gdb/gdbserver/linux-low.c
+++ b/gdb-7.11/gdb/gdbserver/linux-low.c
@@ -56,6 +56,12 @@
#endif
#include "nat/linux-namespaces.h"
+#if defined(__mips__) && !defined(DT_MIPS_RLD_MAP_REL)
+/* Define the DT_MIPS_RLD_MAP_REL dyntag here, until the prebuilts/ndk sysroot
+ gets updated with it's definition. */
+#define DT_MIPS_RLD_MAP_REL 0x70000035 /* Address of run time loader map, used for debugging. */
+#endif
+
#ifndef SPUFS_MAGIC
#define SPUFS_MAGIC 0x23c9b64e
#endif