* linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Wed, 30 May 2012 19:51:38 +0000 (19:51 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Wed, 30 May 2012 19:51:38 +0000 (19:51 +0000)
if the platform doesn't know about it.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index 966d61a90703c8e0a5961169b07b1ebe43788f7c..f364c01d46c7784a4c5e1ec60c238f2d29c22842 100644 (file)
@@ -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.
index c015a6183e9717c956b12aa396cc5c62c46b2811..e8667ea83f05b935a3410ee9747b4c3aacb47724 100644 (file)
@@ -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;
This page took 0.033294 seconds and 4 git commands to generate.