+2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
+
+ * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
+ rather than a hard-coded architecture, for xcoff executables.
+
2008-04-17 Doug Evans <dje@google.com>
* buildsym.c (watch_main_source_file_lossage): New fn.
wordsize = 4;
}
- if (!from_xcoff_exec)
- {
- arch = info.bfd_arch_info->arch;
- mach = info.bfd_arch_info->mach;
- }
- else
- {
- arch = bfd_arch_powerpc;
- bfd_default_set_arch_mach (&abfd, arch, 0);
- info.bfd_arch_info = bfd_get_arch_info (&abfd);
- mach = info.bfd_arch_info->mach;
- }
+ /* Get the architecture and machine from the BFD. */
+ arch = info.bfd_arch_info->arch;
+ mach = info.bfd_arch_info->mach;
/* For e500 executables, the apuinfo section is of help here. Such
section contains the identifier and revision number of each