From 35cec8418138c52928b80f107e8c674af5d4e125 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Thu, 3 Apr 2003 17:56:25 +0000 Subject: [PATCH] * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set ``mach'' to the value determined by bfd_default_set_arch_mach(). --- gdb/ChangeLog | 5 +++++ gdb/rs6000-tdep.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e5d2ce6ac28..d8ff8da6484 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-04-03 Kevin Buettner + + * 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 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o". diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index ef330282782..5b48846bd9a 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; -- 2.30.2