instead of checking for STT_ARM_TFUNC symbol type.
+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
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);
}