diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2012-05-30 19:51:38 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2012-05-30 19:51:38 +0000 |
commit | 75f62ce7b792f82638f4a39a1535e6423ecbe3e1 (patch) | |
tree | 12403afb13df9625dc8e5d6390d22d0a50f8fca8 /gdb/gdbserver | |
parent | 65f479b6ef8735214ca916903b2bb63b4406bf1e (diff) | |
download | gdb-75f62ce7b792f82638f4a39a1535e6423ecbe3e1.zip gdb-75f62ce7b792f82638f4a39a1535e6423ecbe3e1.tar.gz gdb-75f62ce7b792f82638f4a39a1535e6423ecbe3e1.tar.bz2 |
* linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
if the platform doesn't know about it.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 966d61a..f364c01 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> + + * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP + if the platform doesn't know about it. + 2012-05-30 Jeff Kenton <jkenton@tilera.com> * Makefile.in (SFILES): Add linux-tile-low.c. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index c015a61..e8667ea 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -5492,6 +5492,7 @@ get_r_debug (const int pid, const int is_elf64) if (is_elf64) { Elf64_Dyn *const dyn = (Elf64_Dyn *) buf; +#ifdef DT_MIPS_RLD_MAP union { Elf64_Xword map; @@ -5507,6 +5508,7 @@ get_r_debug (const int pid, const int is_elf64) else break; } +#endif /* DT_MIPS_RLD_MAP */ if (dyn->d_tag == DT_DEBUG && map == -1) map = dyn->d_un.d_val; @@ -5517,6 +5519,7 @@ get_r_debug (const int pid, const int is_elf64) else { Elf32_Dyn *const dyn = (Elf32_Dyn *) buf; +#ifdef DT_MIPS_RLD_MAP union { Elf32_Word map; @@ -5532,6 +5535,7 @@ get_r_debug (const int pid, const int is_elf64) else break; } +#endif /* DT_MIPS_RLD_MAP */ if (dyn->d_tag == DT_DEBUG && map == -1) map = dyn->d_un.d_val; |