aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2003-04-03 17:56:25 +0000
committerKevin Buettner <kevinb@redhat.com>2003-04-03 17:56:25 +0000
commit35cec8418138c52928b80f107e8c674af5d4e125 (patch)
tree767a4f33ee691d49f66fc253107f209914fd14da /gdb/rs6000-tdep.c
parented4c619a6772b5ca8fd509f27d3cb6d9623a7616 (diff)
downloadgdb-35cec8418138c52928b80f107e8c674af5d4e125.zip
gdb-35cec8418138c52928b80f107e8c674af5d4e125.tar.gz
gdb-35cec8418138c52928b80f107e8c674af5d4e125.tar.bz2
* rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
``mach'' to the value determined by bfd_default_set_arch_mach().
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index ef33028..5b48846 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2741,9 +2741,9 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
else
{
arch = bfd_arch_powerpc;
- mach = 0;
- bfd_default_set_arch_mach (&abfd, arch, mach);
+ bfd_default_set_arch_mach (&abfd, arch, 0);
info.bfd_arch_info = bfd_get_arch_info (&abfd);
+ mach = info.bfd_arch_info->mach;
}
tdep = xmalloc (sizeof (struct gdbarch_tdep));
tdep->wordsize = wordsize;