This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] rs6000-tdep.c: Reenable debugging of 64-bit AIX executables
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 3 Apr 2003 10:59:26 -0700
- Subject: [PATCH] rs6000-tdep.c: Reenable debugging of 64-bit AIX executables
I recently discovered that we were no longer able to debug 64-bit AIX
executables. This patch make it work again.
Committed.
Kevin
* rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
``mach'' to the value determined by bfd_default_set_arch_mach().
Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.122
diff -u -p -r1.122 rs6000-tdep.c
--- rs6000-tdep.c 1 Apr 2003 17:17:29 -0000 1.122
+++ rs6000-tdep.c 3 Apr 2003 17:49:00 -0000
@@ -2741,9 +2741,9 @@ rs6000_gdbarch_init (struct gdbarch_info
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;