This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: usage of disassemble_info variables


Hi Guys

> > Working code stopped working when i386-dis.c started referring
> > to disassemble_info.disassembler_options.
> > 
> > Is the bug that INIT_DISASSEMBLE_mumble wasn't changed to initialize
> > disassembler_options when disassembler_options was added
> > to disassemble_info?
> 
> Yes.

Which appears to imply that the following patch is in order.  Any
objections ?

Cheers
        Nick

2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>

	* dis-asm.h (INIT_DISASSEMBLE_INFO_NO_ARCH): Initialise the
	disassembler_options field (to NULL).

Index: include/dis-asm.h
===================================================================
RCS file: /cvs/src/src/include/dis-asm.h,v
retrieving revision 1.27
diff -p -c -r1.27 dis-asm.h
*** dis-asm.h	2001/11/14 03:15:28	1.27
--- dis-asm.h	2001/12/07 12:28:44
*************** extern int generic_symbol_at_address
*** 299,304 ****
--- 299,305 ----
    (INFO).bytes_per_line = 0, \
    (INFO).bytes_per_chunk = 0, \
    (INFO).display_endian = BFD_ENDIAN_UNKNOWN, \
+   (INFO).disassembler_options = NULL, \
    (INFO).insn_info_valid = 0
  
  #ifdef __cplusplus



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]