aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-04-17 21:00:53 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-04-17 21:00:53 +0000
commit475bbd17e013a6aaa565d2d664572af56a1bd23d (patch)
tree5a209b908b6b5a5397d97d3015124fb908b75437 /gdb/rs6000-tdep.c
parentb5be4a7c8c504659d73c46741f020c45c9f861d0 (diff)
downloadgdb-475bbd17e013a6aaa565d2d664572af56a1bd23d.zip
gdb-475bbd17e013a6aaa565d2d664572af56a1bd23d.tar.gz
gdb-475bbd17e013a6aaa565d2d664572af56a1bd23d.tar.bz2
* rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
rather than a hard-coded architecture, for xcoff executables.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index fc12619..50dbf2b 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -3307,18 +3307,9 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
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