diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-11-09 15:56:20 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-11-09 15:56:20 +0000 |
commit | a5eda10c7857581e6ee641937f99aa76fa8044eb (patch) | |
tree | 5fcfcd1a07bfea45c5a8a205268f76c23dd4677b /gdb/arm-tdep.c | |
parent | c098766357b77f0553ec017b48abdd563de0281e (diff) | |
download | gdb-a5eda10c7857581e6ee641937f99aa76fa8044eb.zip gdb-a5eda10c7857581e6ee641937f99aa76fa8044eb.tar.gz gdb-a5eda10c7857581e6ee641937f99aa76fa8044eb.tar.bz2 |
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.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |