Mon Feb 24 19:59:50 2003 J"orn Rennecke * disasm.c (gdb_disassembly): If TARGET_ARCHITECTURE is non-zero, initialize di.mach from there. Index: disasm.c =================================================================== RCS file: /cvs/src/src/gdb/disasm.c,v retrieving revision 1.4 diff -p -r1.4 disasm.c *** disasm.c 3 Feb 2003 01:18:37 -0000 1.4 --- disasm.c 24 Feb 2003 19:59:47 -0000 *************** gdb_disassembly (struct ui_out *uiout, *** 338,344 **** --- 338,350 ---- di_initialized = 1; } + /* ??? TARGET_PRINT_INSN_INFO is undocumented and only initialized inside + printcmd.c:print_insn , and some strange hacks that access fields of + the variable that underlies the implementation of this macro. */ di.mach = TARGET_PRINT_INSN_INFO->mach; + if (TARGET_ARCHITECTURE != NULL) + di.mach = TARGET_ARCHITECTURE->mach; + if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) di.endian = BFD_ENDIAN_BIG; else