Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2000-12-19 02:19:55 +0300
committerHans-Peter Nilsson <hp@axis.com>2000-12-19 02:19:55 +0300
commit4f9558507059ed3b99bcd13819ee228fab751514 (patch)
tree083e0b8bbf8be01c3eeaf48c88e5c4607992f9d6 /include/dis-asm.h
parent11d54e5d031e9f20a7b557b5c8006627aae30631 (diff)
* dis-asm.h (struct disassemble_info): New member "section".
(INIT_DISASSEMBLE_INFO_NO_ARCH): Initialize private_data member. Initialize section member.
Diffstat (limited to 'include/dis-asm.h')
-rw-r--r--include/dis-asm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/dis-asm.h b/include/dis-asm.h
index a7bb51a1f..67432e2b3 100644
--- a/include/dis-asm.h
+++ b/include/dis-asm.h
@@ -56,6 +56,11 @@ typedef struct disassemble_info {
/* Endianness (for bi-endian cpus). Mono-endian cpus can ignore this. */
enum bfd_endian endian;
+ /* Some targets need information about the current section to accurately
+ display insns. If this is NULL, the target disassembler function
+ will have to make its best guess. */
+ asection *section;
+
/* An array of pointers to symbols either at the location being disassembled
or at the start of the function being disassembled. The array is sorted
so that the first symbol is intended to be the one used. The others are
@@ -256,8 +261,10 @@ extern int generic_symbol_at_address
#define INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC) \
(INFO).fprintf_func = (fprintf_ftype)(FPRINTF_FUNC), \
(INFO).stream = (PTR)(STREAM), \
+ (INFO).section = NULL, \
(INFO).symbols = NULL, \
(INFO).num_symbols = 0, \
+ (INFO).private_data = NULL, \
(INFO).buffer = NULL, \
(INFO).buffer_vma = 0, \
(INFO).buffer_length = 0, \