obvious: call arch-specific init function for disassembly info

Jim Blandy jimb@redhat.com
Thu Feb 24 20:27:00 GMT 2005


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;
  }
  



More information about the Gdb-patches mailing list