aboutsummaryrefslogtreecommitdiff
path: root/opcodes/disassemble.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-11-14 15:12:44 +0000
committerNick Clifton <nickc@redhat.com>2003-11-14 15:12:44 +0000
commit22a398e1906e55c453f561070206acb80daf91f1 (patch)
tree65bf0b1990f70a6de47ecf23178e8cac8daedac9 /opcodes/disassemble.c
parent0a90bcdd1e7a73c342ab98507cee35df59fbcdbd (diff)
downloadgdb-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/disassemble.c')
-rw-r--r--opcodes/disassemble.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index 14113b5..d5b17be 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -397,3 +397,21 @@ disassembler_usage (stream)
return;
}
+
+void
+disassemble_init_for_target (struct disassemble_info * info)
+{
+ if (info == NULL)
+ return;
+
+ switch (info->arch)
+ {
+#ifdef ARCH_arm
+ case bfd_arch_arm:
+ info->symbol_is_valid = arm_symbol_is_valid;
+ break;
+#endif
+ default:
+ break;
+ }
+}