This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Use ELF_STRING_ARM_unwind in arm-tdep.c
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 9 Nov 2015 15:57:18 -0000
- Subject: [binutils-gdb] Use ELF_STRING_ARM_unwind in arm-tdep.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a5eda10c7857581e6ee641937f99aa76fa8044eb
commit a5eda10c7857581e6ee641937f99aa76fa8044eb
Author: Yao Qi <yao.qi@linaro.org>
Date: Mon Nov 9 15:56:20 2015 +0000
Use ELF_STRING_ARM_unwind in arm-tdep.c
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.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/arm-tdep.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0e63ed2..e198c93 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
(handle_inferior_event_1): Call it.
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 3a6c6d8..308d484 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -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);