This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: [ob] initialize info->insn_sets to zero


I trust no one will object to this. Frv target reacts badly if it's un-initialized.

Isn't this really a bug in INIT_DISASSEMBLE_INFO_NO_ARCH?


Andrew


2003-08-14 Michael Snyder <msnyder@redhat.com>

* disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.

Index: disasm.c
===================================================================
RCS file: /cvs/src/src/gdb/disasm.c,v
retrieving revision 1.12
diff -p -r1.12 disasm.c
*** disasm.c 18 Jul 2003 20:16:23 -0000 1.12
--- disasm.c 14 Aug 2003 21:37:46 -0000
*************** gdb_disassemble_info (struct gdbarch *gd
*** 334,339 ****
--- 334,340 ----
di.arch = gdbarch_bfd_arch_info (gdbarch)->arch;
di.mach = gdbarch_bfd_arch_info (gdbarch)->mach;
di.endian = gdbarch_byte_order (gdbarch);
+ di.insn_sets = 0;
return di;
}



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