From 467d42c48df9176d44263f5190cd85192f9ea8f7 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 25 Mar 2011 21:05:23 +0000 Subject: * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE instead of checking for STT_ARM_TFUNC symbol type. --- gdb/ChangeLog | 5 +++++ 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 + + * 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 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); } -- cgit v1.1