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]

usage of disassemble_info variables


There seems to be an unwritten rule that a disassemble_info
variable can't be a (non-static) local variable.
Either that or INIT_DISASSEMBLE_mumble must initialize disassembler_options
or each caller to print_insn_i386* is responsible for setting it.

We have various entry points into the x86 disassembler
and I'm seeing a segv'ing because disassembler_options has garbage.

objdump initializes it.
gdb doesn't but gets away with it because tm_print_insn_info is a global.

What's up?


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