]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dis-asm.h (struct disassemble_info): New member "section".
authorHans-Peter Nilsson <hp@axis.com>
Mon, 18 Dec 2000 23:19:55 +0000 (23:19 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 18 Dec 2000 23:19:55 +0000 (23:19 +0000)
(INIT_DISASSEMBLE_INFO_NO_ARCH): Initialize private_data member.
Initialize section member.

include/ChangeLog
include/dis-asm.h

index ac1928c78b2493debeb17bec2c5b639ca6078058..c6200e313ab5e1b68ca1b3571ab2182393578210 100644 (file)
@@ -1,3 +1,9 @@
+2000-12-19  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * dis-asm.h (struct disassemble_info): New member "section".
+       (INIT_DISASSEMBLE_INFO_NO_ARCH): Initialize private_data member.
+       Initialize section member.
+
 2000-12-16  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
 
        * safe-ctype.h: Make code work on all targets and not just on
index a7bb51a1fa6602242aa4431b2fadef86c4b4e6b9..67432e2b386cf6fee0ff5d23de7a376a2afeb6c7 100644 (file)
@@ -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, \