aboutsummaryrefslogtreecommitdiff
path: root/gdb/disasm.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-07-18 20:16:23 +0000
committerAndrew Cagney <cagney@redhat.com>2003-07-18 20:16:23 +0000
commit22b0d388c7f3d6271df8e2193a1c4f4d4a7d973d (patch)
treee7e7229cc847a3f4b82a7807395592f8aeec0248 /gdb/disasm.c
parent1ce5d6dda58437d73491c1dda90dbdd48e37e142 (diff)
downloadgdb-22b0d388c7f3d6271df8e2193a1c4f4d4a7d973d.zip
gdb-22b0d388c7f3d6271df8e2193a1c4f4d4a7d973d.tar.gz
gdb-22b0d388c7f3d6271df8e2193a1c4f4d4a7d973d.tar.bz2
2003-07-18 Andrew Cagney <cagney@redhat.com>
From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>: * disasm.c (gdb_disassemble_info): Initilize di.arch.
Diffstat (limited to 'gdb/disasm.c')
-rw-r--r--gdb/disasm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/disasm.c b/gdb/disasm.c
index 2c5e7c9..f86ec3f 100644
--- a/gdb/disasm.c
+++ b/gdb/disasm.c
@@ -331,6 +331,7 @@ gdb_disassemble_info (struct gdbarch *gdbarch, struct ui_file *file)
Further, it has been supperseeded by trust-read-only-sections
(although that should be superseeded by target_trust..._p()). */
di.read_memory_func = dis_asm_read_memory;
+ di.arch = gdbarch_bfd_arch_info (gdbarch)->arch;
di.mach = gdbarch_bfd_arch_info (gdbarch)->mach;
di.endian = gdbarch_byte_order (gdbarch);
return di;