From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2465 invoked by alias); 11 May 2012 20:31:23 -0000 Received: (qmail 2456 invoked by uid 22791); 11 May 2012 20:31:22 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 May 2012 20:31:10 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id q4BKV6jo009271; Fri, 11 May 2012 22:31:06 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id q4BKV2s4004871; Fri, 11 May 2012 22:31:02 +0200 (CEST) Date: Fri, 11 May 2012 20:31:00 -0000 Message-Id: <201205112031.q4BKV2s4004871@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: hjl.tools@gmail.com CC: gdb-patches@sourceware.org In-reply-to: <20120511192949.GA5070@intel.com> (hongjiu.lu@intel.com) Subject: Re: PATCH: Check bfd_mach_x64_32 to set tdesc for x32 binary References: <20120511192949.GA5070@intel.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00452.txt.bz2 > Date: Fri, 11 May 2012 12:29:49 -0700 > From: "H.J. Lu" > > This patch checks bfd_mach_x64_32 to set tdesc for x32 binary. Tested > on Linux/x86-64. OK to install? > > Thanks. > > * amd64-linux-tdep.h (tdesc_x32_linux): New. > (tdesc_x32_avx_linux): Likewise. You should commit this bit seperately. > diff --git a/gdb/amd64-linux-tdep.h b/gdb/amd64-linux-tdep.h > index 0338b6e..49bb95e 100644 > --- a/gdb/amd64-linux-tdep.h > +++ b/gdb/amd64-linux-tdep.h > @@ -34,6 +34,8 @@ > /* Linux target description. */ > extern struct target_desc *tdesc_amd64_linux; > extern struct target_desc *tdesc_amd64_avx_linux; > +extern struct target_desc *tdesc_x32_linux; > +extern struct target_desc *tdesc_x32_avx_linux; > > /* Enum that defines the syscall identifiers for amd64 linux. > Used for process record/replay, these will be translated into >