From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73648 invoked by alias); 21 Jul 2016 14:06:37 -0000 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 Received: (qmail 73553 invoked by uid 89); 21 Jul 2016 14:06:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=commercial, Tel, tel, office X-HELO: mga09.intel.com Received: from mga09.intel.com (HELO mga09.intel.com) (134.134.136.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Jul 2016 14:06:26 +0000 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 21 Jul 2016 07:04:37 -0700 X-ExtLoop1: 1 Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by orsmga003.jf.intel.com with ESMTP; 21 Jul 2016 07:04:35 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX154.ger.corp.intel.com (163.33.192.96) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 21 Jul 2016 15:04:34 +0100 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.117]) by irsmsx111.ger.corp.intel.com ([169.254.2.113]) with mapi id 14.03.0248.002; Thu, 21 Jul 2016 15:04:34 +0100 From: "Metzger, Markus T" To: Pedro Alves , Jan Kratochvil CC: "gdb-patches@sourceware.org" Subject: RE: [commit] [testsuite patch] Fix gdb.btrace/tailcall-only.exp errors on x86_64-m32 Date: Thu, 21 Jul 2016 14:06:00 -0000 Message-ID: References: <20160408155331.GA31979@host1.jankratochvil.net> <4adcda99-ae37-00d8-c38f-37702f7a50b4@redhat.com> <20160720142247.GB16994@host1.jankratochvil.net> <20160720143844.GA14699@host1.jankratochvil.net> <2234b2b7-47af-9887-ee70-495be177f038@redhat.com> <759c4b90-219f-deb5-495f-9fc3c978f890@redhat.com> In-Reply-To: <759c4b90-219f-deb5-495f-9fc3c978f890@redhat.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00256.txt.bz2 > -----Original Message----- > From: Pedro Alves [mailto:palves@redhat.com] > Sent: Thursday, July 21, 2016 4:00 PM > To: Metzger, Markus T ; Jan Kratochvil > > Cc: gdb-patches@sourceware.org > Subject: Re: [commit] [testsuite patch] Fix gdb.btrace/tailcall-only.exp = errors on > x86_64-m32 >=20 > On 07/21/2016 02:50 PM, Metzger, Markus T wrote: >=20 > > I use the triplet to select the source files for a test. Seems that wa= sn't such > > a good idea. > > > > Using the pointer size doesn't seem to be such a good idea, either, as = x32 > > uses x86_64 ISA with 32-bit pointers. >=20 > But that's exactly what you want. >=20 > > > > Is there a recommended/documented way on how this should be done? >=20 > - is_amd64_regs_target detects x86_64 ISA. >=20 > - is_lp64_target detects 64-bit/32-bit pointers. >=20 > Thus: >=20 > is_amd64_regs_target && is_lp64_target =3D=3D 64-bit > is_amd64_regs_target && !is_lp64_target =3D=3D x32 > !is_amd64_regs_target =3D=3D 32-bit >=20 > See intro comments to is_amd64_regs_target and proc is_x86_like_target. Thanks, looks like just "is_amd64_regs_target" is what I want. Thanks, Markus. Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Christian Lamprechter Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928