* rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
authorKevin Buettner <kevinb@redhat.com>
Thu, 3 Apr 2003 17:56:25 +0000 (17:56 +0000)
committerKevin Buettner <kevinb@redhat.com>
Thu, 3 Apr 2003 17:56:25 +0000 (17:56 +0000)
``mach'' to the value determined by bfd_default_set_arch_mach().

gdb/ChangeLog
gdb/rs6000-tdep.c

index e5d2ce6ac28cda08311593b0ef3de40dc7c14d7f..d8ff8da6484bf889c8312c57d59a99dfda135602 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-03  Kevin Buettner  <kevinb@redhat.com>
+
+       * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
+       ``mach'' to the value determined by bfd_default_set_arch_mach().
+
 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
 
        * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
index ef3302827823ded191a63267523b2687508a81e4..5b48846bd9af33e6336d486e866a3ad36d1130cc 100644 (file)
@@ -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;