aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-05-14 16:43:35 +0000
committerAndrew Cagney <cagney@redhat.com>2001-05-14 16:43:35 +0000
commitb732d07d86411216a0913c95f55bfc1d2c59ee90 (patch)
tree28050766cce41c0cdb5c814fe0124c8529d9546d /gdb/rs6000-tdep.c
parent4ed00bba849db255def415a1c8071ddcb8af7b61 (diff)
downloadgdb-b732d07d86411216a0913c95f55bfc1d2c59ee90.zip
gdb-b732d07d86411216a0913c95f55bfc1d2c59ee90.tar.gz
gdb-b732d07d86411216a0913c95f55bfc1d2c59ee90.tar.bz2
Fix logic selecting a new architecture. Use the sequence:
o provided by INFO o hard-wired by (gdb) set ... o reversed engineered from INFO.abfd o default to previous architecture
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 3c0a7b9..864345d 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2210,7 +2210,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
if (!from_xcoff_exec)
{
- arch = info.bfd_architecture;
+ arch = info.bfd_arch_info->arch;
mach = info.bfd_arch_info->mach;
}
else