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]

obvious: call arch-specific init function for disassembly info


Per the comment in include/dis-asm.h.

2005-02-22  Jim Blandy  <jimb@redhat.com>

	* disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.

Index: gdb/disasm.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/disasm.c,v
retrieving revision 2.10
diff -c -p -r2.10 disasm.c
*** gdb/disasm.c	13 Apr 2004 16:38:54 -0000	2.10
--- gdb/disasm.c	22 Feb 2005 20:13:02 -0000
*************** gdb_disassemble_info (struct gdbarch *gd
*** 344,349 ****
--- 344,350 ----
    di.arch = gdbarch_bfd_arch_info (gdbarch)->arch;
    di.mach = gdbarch_bfd_arch_info (gdbarch)->mach;
    di.endian = gdbarch_byte_order (gdbarch);
+   disassemble_init_for_target (&di);
    return di;
  }
  


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