Use ELF_STRING_ARM_unwind in arm-tdep.c
authorYao Qi <yao.qi@linaro.org>
Mon, 9 Nov 2015 15:56:20 +0000 (15:56 +0000)
committerYao Qi <yao.qi@linaro.org>
Mon, 9 Nov 2015 15:56:20 +0000 (15:56 +0000)
We've already has the definition like this,

 #define ELF_STRING_ARM_unwind           ".ARM.exidx"

so it is better to use the macro rather than the string.

gdb:

2015-11-09  Yao Qi  <yao.qi@linaro.org>

* arm-tdep.c (arm_exidx_new_objfile): Use
ELF_STRING_ARM_unwind.

gdb/ChangeLog
gdb/arm-tdep.c

index 0e63ed261d25f4b91a188d9defd744ed2b86af03..e198c936038dffc9b8e9faf8492876b5349f4d2f 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-09  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-tdep.c (arm_exidx_new_objfile): Use
+       ELF_STRING_ARM_unwind.
+
 2015-11-09  Yao Qi  <yao.qi@linaro.org>
 
        * infrun.c (displaced_step_in_progress_thread): New function.
index 3a6c6d86554a72a4801f942a302ff76d6d46779c..308d484f856fc37e37ac3c7bb1af7a5882d24ea9 100644 (file)
@@ -2219,7 +2219,7 @@ arm_exidx_new_objfile (struct objfile *objfile)
   cleanups = make_cleanup (null_cleanup, NULL);
 
   /* Read contents of exception table and index.  */
-  exidx = bfd_get_section_by_name (objfile->obfd, ".ARM.exidx");
+  exidx = bfd_get_section_by_name (objfile->obfd, ELF_STRING_ARM_unwind);
   if (exidx)
     {
       exidx_vma = bfd_section_vma (objfile->obfd, exidx);