aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-03-25 21:05:23 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-03-25 21:05:23 +0000
commit467d42c48df9176d44263f5190cd85192f9ea8f7 (patch)
treea0a32253b4dc1d0dbf7522609d61a991d12e9aa5 /gdb/arm-tdep.c
parentd0289b45c28904e9dd19939b378e5298573af403 (diff)
downloadgdb-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.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c6
1 files changed, 2 insertions, 4 deletions
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);
}