aboutsummaryrefslogtreecommitdiff
path: root/include/dis-asm.h
diff options
context:
space:
mode:
authorTimothy Wall <twall@alum.mit.edu>2000-02-03 18:12:55 +0000
committerTimothy Wall <twall@alum.mit.edu>2000-02-03 18:12:55 +0000
commit940b2b788ccdda311ff16e18d79e68d0c7928842 (patch)
tree1bf115ed503420cc45254c97a054e8e7f6909817 /include/dis-asm.h
parent8b93c6380e299446e645ece29bf77d26f5713529 (diff)
downloadgdb-940b2b788ccdda311ff16e18d79e68d0c7928842.zip
gdb-940b2b788ccdda311ff16e18d79e68d0c7928842.tar.gz
gdb-940b2b788ccdda311ff16e18d79e68d0c7928842.tar.bz2
octets vs bytes changes for binutils
Diffstat (limited to 'include/dis-asm.h')
-rw-r--r--include/dis-asm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dis-asm.h b/include/dis-asm.h
index 98a7d17..8dc9b71 100644
--- a/include/dis-asm.h
+++ b/include/dis-asm.h
@@ -121,6 +121,11 @@ typedef struct disassemble_info {
int bytes_per_chunk;
enum bfd_endian display_endian;
+ /* Number of octets per incremented target address
+ Normally one, but some DSPs have byte sizes of 16 or 32 bits
+ */
+ int octets_per_byte;
+
/* Results from instruction decoders. Not all decoders yet support
this information. This info is set each time an instruction is
decoded, and is only valid for the last such instruction.
@@ -229,6 +234,7 @@ extern int generic_symbol_at_address
(INFO).arch = bfd_arch_unknown, \
(INFO).mach = 0, \
(INFO).endian = BFD_ENDIAN_UNKNOWN, \
+ (INFO).octets_per_byte = 1, \
INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC)
/* Call this macro to initialize only the internal variables for the