diff options
author | Nick Clifton <nickc@redhat.com> | 2003-11-14 15:12:44 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-11-14 15:12:44 +0000 |
commit | 22a398e1906e55c453f561070206acb80daf91f1 (patch) | |
tree | 65bf0b1990f70a6de47ecf23178e8cac8daedac9 /opcodes/arm-dis.c | |
parent | 0a90bcdd1e7a73c342ab98507cee35df59fbcdbd (diff) | |
download | gdb-22a398e1906e55c453f561070206acb80daf91f1.zip gdb-22a398e1906e55c453f561070206acb80daf91f1.tar.gz gdb-22a398e1906e55c453f561070206acb80daf91f1.tar.bz2 |
Add new field to disassemble_info structure: symbol_is_valid() and use it to
skip displaying arm elf mapping symbols in disassembly output.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r-- | opcodes/arm-dis.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index 5f8fc4c..d4ba196 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -1145,6 +1145,23 @@ print_insn_thumb (pc, info, given) abort (); } +/* Disallow mapping symbols ($a, $b, $d, $t etc) from + being displayed in symbol relative addresses. */ + +bfd_boolean +arm_symbol_is_valid (asymbol * sym, + struct disassemble_info * info ATTRIBUTE_UNUSED) +{ + const char * name; + + if (sym == NULL) + return FALSE; + + name = bfd_asymbol_name (sym); + + return (name && *name != '$'); +} + /* Parse an individual disassembler option. */ void |