This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch][rfa]: objdump.c -- SKIP_ZEROES, SKIP_ZEROES_AT_END
- To: binutils at sources dot redhat dot com
- Subject: [patch][rfa]: objdump.c -- SKIP_ZEROES, SKIP_ZEROES_AT_END
- From: Dave Brolley <brolley at redhat dot com>
- Date: Tue, 24 Jul 2001 12:07:07 -0400
- CC: scox at redhat dot com, scenix-vpe4kcopro-project at cygnus dot com
Hi,
Many new targets have long instructions words and many new isa's have
valid insns which are all zeroes. Objdump uses two macros, SKIP_ZEROES
and SKIP_ZEROES_AT END, to decide when to skip over sequences of
zero-bytes instead of disassembling them. The attached patch allows
individual ports to set these macros to suitable values via OBJDUMP_DEFS
in configure.in.
Ok to commit?
Dave
2001-07-24 Dave Brolley <brolley@redhat.com>
* objdump.c (SKIP_ZEROES): Only define it if it is not already defined.
(SKIP_ZEROES_AT_END): Only define it if it is not already defined.
Index: binutils/objdump.c
===================================================================
RCS file: /cvs/src/src/binutils/objdump.c,v
retrieving revision 1.35
diff -c -p -r1.35 objdump.c
*** binutils/objdump.c 2001/05/28 10:03:19 1.35
--- binutils/objdump.c 2001/07/24 15:45:50
*************** objdump_sprintf (va_alist)
*** 1222,1228 ****
--- 1222,1230 ----
/* The number of zeroes we want to see before we start skipping them.
The number is arbitrarily chosen. */
+ #ifndef SKIP_ZEROES
#define SKIP_ZEROES (8)
+ #endif
/* The number of zeroes to skip at the end of a section. If the
number of zeroes at the end is between SKIP_ZEROES_AT_END and
*************** objdump_sprintf (va_alist)
*** 1231,1237 ****
--- 1233,1241 ----
attempt to avoid disassembling zeroes inserted by section
alignment. */
+ #ifndef SKIP_ZEROES_AT_END
#define SKIP_ZEROES_AT_END (3)
+ #endif
/* Disassemble some data in memory between given values. */