From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11752 invoked by alias); 3 Apr 2003 17:59:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11745 invoked from network); 3 Apr 2003 17:59:32 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 3 Apr 2003 17:59:32 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h33HxWe08299 for ; Thu, 3 Apr 2003 12:59:32 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h33HxWJ28307 for ; Thu, 3 Apr 2003 12:59:32 -0500 Received: from localhost.localdomain (vpn50-2.rdu.redhat.com [172.16.50.2]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h33HxV326422 for ; Thu, 3 Apr 2003 12:59:32 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h33HxQN01524 for gdb-patches@sources.redhat.com; Thu, 3 Apr 2003 10:59:26 -0700 Date: Thu, 03 Apr 2003 17:59:00 -0000 From: Kevin Buettner Message-Id: <1030403175926.ZM1520@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [PATCH] rs6000-tdep.c: Reenable debugging of 64-bit AIX executables MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00056.txt.bz2 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;