From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id B12793858D35 for ; Mon, 16 Aug 2021 12:14:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B12793858D35 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17GC4Ota070468; Mon, 16 Aug 2021 08:14:39 -0400 Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 3aeu4c62u5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Aug 2021 08:14:39 -0400 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 17GCBx2D003688; Mon, 16 Aug 2021 12:14:38 GMT Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by ppma05wdc.us.ibm.com with ESMTP id 3ae5faws9j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Aug 2021 12:14:38 +0000 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 17GCEb4v45547796 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Aug 2021 12:14:37 GMT Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7A3C4C607A; Mon, 16 Aug 2021 12:14:37 +0000 (GMT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 66A3EC606D; Mon, 16 Aug 2021 12:14:37 +0000 (GMT) Received: from mww0272.dal12m.mail.ibm.com (unknown [9.208.64.29]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTPS; Mon, 16 Aug 2021 12:14:37 +0000 (GMT) MIME-Version: 1.0 In-Reply-To: Subject: Re: [PATCH, rs6000] [V2] Add ppc64*_gnu_triplet_regexp methods. To: "will schmidt" Cc: "Alan Modra" , "will schmidt via Gdb-patches" , "rogerio" , "Tom Tromey" Message-ID: From: "Ulrich Weigand" Date: Mon, 16 Aug 2021 14:14:34 +0200 References: <877dh8aovl.fsf@tromey.com> X-KeepSent: EB0F607D:D4212FCF-C1258733:00433517; name=$KeepSent; type=4 X-Mailer: IBM Notes Release 9.0.1FP7 Octobe4, 2013 X-Disclaimed: 52031 X-MIMETrack: CD-MIME by Router on MWW0272/03/M/IBM at 08/16/2021 12:14:37, CD-MIME complete at 08/16/2021 12:14:37,Itemize by Router on MWW0272/03/M/IBM at 08/16/2021 12:14:37 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: OAuqwDuGlH7huo7NueChrY7belw2w7PG X-Proofpoint-GUID: OAuqwDuGlH7huo7NueChrY7belw2w7PG X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-16_04:2021-08-16, 2021-08-16 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 clxscore=1015 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 impostorscore=0 adultscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108160076 X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, HTML_MESSAGE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2021 12:14:41 -0000 "will schmidt" wrote on 05.08.2021 22:43:06: > diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c > index 1e94922f25a..6c88d896a2d 100644 > --- a/gdb/ppc-linux-tdep.c > +++ b/gdb/ppc-linux-tdep.c > @@ -1971,10 +1971,34 @@ ppc=5Ffloatformat=5Ffor=5Ftype (struct gdbarch *gdbarch, > } > > return default=5Ffloatformat=5Ffor=5Ftype (gdbarch, name, len); > } > > +/* Specify the powerpc64le target triplet. > + This can be variations of > + ppc64le-{distro}-linux-gcc > + and > + powerpc64le-{distro}-linux-gcc. */ > + > +static const char * > +ppc64le=5Fgnu=5Ftriplet=5Fregexp (struct gdbarch *gdbarch) > +{ > + return "p(ower)?pc64le"; > +} > + > +/* Specify the powerpc64 target triplet. > + This can be variations of > + ppc64-{distro}-linux-gcc > + and > + powerpc64-{distro}-linux-gcc. */ > + > +static const char * > +ppc64=5Fgnu=5Ftriplet=5Fregexp (struct gdbarch *gdbarch) > +{ > + return "p(ower)?pc64"; > +} > + > static void > ppc=5Flinux=5Finit=5Fabi (struct gdbarch=5Finfo info, > struct gdbarch *gdbarch) > { > struct gdbarch=5Ftdep *tdep =3D gdbarch=5Ftdep (gdbarch); > @@ -2101,10 +2125,15 @@ ppc=5Flinux=5Finit=5Fabi (struct gdbarch=5Finfo i= nfo, > /* BFD target for core files. */ > if (gdbarch=5Fbyte=5Forder (gdbarch) =3D=3D BFD=5FENDIAN=5FLITTLE) > set=5Fgdbarch=5Fgcore=5Fbfd=5Ftarget (gdbarch, "elf64-powerpcle"); > else > set=5Fgdbarch=5Fgcore=5Fbfd=5Ftarget (gdbarch, "elf64-powerpc"); > + /* Set compiler triplet. */ > + if (gdbarch=5Fbyte=5Forder (gdbarch) =3D=3D BFD=5FENDIAN=5FLITTLE) > + set=5Fgdbarch=5Fgnu=5Ftriplet=5Fregexp (gdbarch, ppc64le=5Fgnu=5Ftrip= let=5Fregexp); > + else > + set=5Fgdbarch=5Fgnu=5Ftriplet=5Fregexp (gdbarch, ppc64=5Fgnu=5Ftriple= t=5Fregexp); > } > > set=5Fgdbarch=5Fcore=5Fread=5Fdescription (gdbarch, > ppc=5Flinux=5Fcore=5Fread=5Fdescription); > set=5Fgdbarch=5Fiterate=5Fover=5Fregset=5Fsections (gdbarch, > ppc=5Flinux=5Fiterate=5Fover=5Fregset=5Fsections); > This is OK. Thanks, Ulrich