aboutsummaryrefslogtreecommitdiff
path: root/opcodes/disassemble.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2005-01-10 09:54:50 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2005-01-10 09:54:50 +0000
commit0bcb06d2f206b920aed12619c82f6e311ecacce2 (patch)
treee319b5e58c99679665a31ca7441587e6417259fd /opcodes/disassemble.c
parentf33e9acf1b9d497a366d072caee34548fcfdf1cb (diff)
downloadgdb-0bcb06d2f206b920aed12619c82f6e311ecacce2.zip
gdb-0bcb06d2f206b920aed12619c82f6e311ecacce2.tar.gz
gdb-0bcb06d2f206b920aed12619c82f6e311ecacce2.tar.bz2
binutils/:
* configure.in: Don't define SKIP_ZEROES. * configure: Regenerate. * objdump.c (disassemble_data): Set skip_zeroes and skip_zeroes_at_end in disasm_info to defaults. (DEFAULT_SKIP_ZEROES): Rename from SKIP_ZEROES and always define. (DEFAULT_SKIP_ZEROES_AT_END): Rename from SKIP_ZEROES_AT_END and always define. (disassemble_bytes): Use skip_zeroes and skip_zeroes_at_end from objdump_disasm_info. include/: * dis-asm.h (struct disassemble_info): Add skip_zeroes and skip_zeroes_at_end. opcodes/: * disassemble.c (disassemble_init_for_target) <case bfd_arch_ia64>: Set skip_zeroes to 16. <case bfd_arch_tic4x>: Set skip_zeroes to 32.
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r--opcodes/disassemble.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index 19de8f6..7fda7d3 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -1,5 +1,5 @@
/* Select disassembly routine for specified architecture.
- Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004
+ Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -424,6 +424,15 @@ disassemble_init_for_target (struct disassemble_info * info)
info->symbol_is_valid = arm_symbol_is_valid;
break;
#endif
+#ifdef ARCH_ia64
+ case bfd_arch_ia64:
+ info->skip_zeroes = 16;
+ break;
+#endif
+#ifdef ARCH_tic4x
+ case bfd_arch_tic4x:
+ info->skip_zeroes = 32;
+#endif
default:
break;
}