From: Ulrich Weigand Date: Fri, 25 Mar 2011 21:05:23 +0000 (+0000) Subject: * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=467d42c48df9176d44263f5190cd85192f9ea8f7;p=binutils-gdb.git * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE instead of checking for STT_ARM_TFUNC symbol type. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 917d4939119..a21aa81bb0f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-03-25 Ulrich Weigand + + * 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 * linespec.c (symbol_found): Restore line-based result for diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 480015d01c6..5a5152cc477 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); }