diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-03-25 21:05:23 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-03-25 21:05:23 +0000 |
commit | 467d42c48df9176d44263f5190cd85192f9ea8f7 (patch) | |
tree | a0a32253b4dc1d0dbf7522609d61a991d12e9aa5 | |
parent | d0289b45c28904e9dd19939b378e5298573af403 (diff) | |
download | gdb-467d42c48df9176d44263f5190cd85192f9ea8f7.zip gdb-467d42c48df9176d44263f5190cd85192f9ea8f7.tar.gz gdb-467d42c48df9176d44263f5190cd85192f9ea8f7.tar.bz2 |
* arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
instead of checking for STT_ARM_TFUNC symbol type.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 917d493..a21aa81 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org> + + * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE + instead of checking for STT_ARM_TFUNC symbol type. + 2011-03-25 Tom Tromey <tromey@redhat.com> * linespec.c (symbol_found): Restore line-based result for diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 480015d..5a5152c 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -7793,10 +7793,8 @@ coff_sym_is_thumb (int val) static void arm_elf_make_msymbol_special(asymbol *sym, struct minimal_symbol *msym) { - /* Thumb symbols are of type STT_LOPROC, (synonymous with - STT_ARM_TFUNC). */ - if (ELF_ST_TYPE (((elf_symbol_type *)sym)->internal_elf_sym.st_info) - == STT_LOPROC) + if (ARM_SYM_BRANCH_TYPE (&((elf_symbol_type *)sym)->internal_elf_sym) + == ST_BRANCH_TO_THUMB) MSYMBOL_SET_SPECIAL (msym); } |