From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UNLCN88QomKn7QAAWB0awg (envelope-from ) for ; Thu, 09 Jun 2022 11:25:03 -0400 Received: by simark.ca (Postfix, from userid 112) id D15C91E223; Thu, 9 Jun 2022 11:25:03 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ILJi2J+E; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id AC55F1E15C for ; Thu, 9 Jun 2022 11:25:02 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0A56F385C334 for ; Thu, 9 Jun 2022 15:25:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A56F385C334 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1654788302; bh=95lpyDDbps3TMOeyv+TpOIlWgTSOjdtNlm1Yeh0E4f8=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ILJi2J+ETFm6tbpqzeOy3L803Br/ee3pnk4MNcWal8Q/YlqCwh3bkM1HfeuoX0key f1j4MeCpdin4S8w6p/EDSlYkcAbVz+6bY27Asw32TfBMSOXLmyUoDQswYLVbdjvM8G G662GCOzOCplVr0IoioHq9dNiCJRBPREcMc0h8Y8= Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id D03E5385C316 for ; Thu, 9 Jun 2022 15:24:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D03E5385C316 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 259DuE1q027700; Thu, 9 Jun 2022 15:24:40 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3gkj6dt2cv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jun 2022 15:24:40 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 259EPdwM017119; Thu, 9 Jun 2022 15:24:40 GMT Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3gkj6dt2ch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jun 2022 15:24:40 +0000 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 259FDiEF014516; Thu, 9 Jun 2022 15:24:39 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma04dal.us.ibm.com with ESMTP id 3gfy1akkgw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jun 2022 15:24:39 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 259FOcX041484726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 Jun 2022 15:24:38 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5C209BE04F; Thu, 9 Jun 2022 15:24:38 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 06C39BE051; Thu, 9 Jun 2022 15:24:38 +0000 (GMT) Received: from li-e362e14c-2378-11b2-a85c-87d605f3c641.ibm.com (unknown [9.211.124.91]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 9 Jun 2022 15:24:37 +0000 (GMT) Message-ID: To: Pedro Alves , Kevin Buettner Date: Thu, 09 Jun 2022 08:24:37 -0700 In-Reply-To: References: <76bea9ad010a71ea5e2c7fd78f818bdb399810a6.camel@us.ibm.com> <20220506110826.5e16c8b6@f35-zws-1> <70a877cc-2f35-3924-6717-9d519c2730c5@palves.net> <099c8f8d8729a0051f83a034d62c18f03c789167.camel@vnet.ibm.com> <37d2a4b6a57b62662f0417f123bda6ba48066554.camel@vnet.ibm.com> <998d3f4859f16b73afd5103b682246643fef6d42.camel@us.ibm.com> <20220511154822.3b9f7d74@f35-zws-1> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: iN1KXSqAo6gl_XiA1LM9ms3OgsIepEem X-Proofpoint-ORIG-GUID: O6aqDsgfnAiqgQzvISQT6Pk3Arl9EegJ Subject: RE: [PATCH V3] PowerPC: fix for gdb.base/eh_return.exp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-09_12,2022-06-09_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 mlxlogscore=986 adultscore=0 spamscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206090060 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: , From: Carl Love via Gdb-patches Reply-To: Carl Love Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On Wed, 2022-06-08 at 19:32 +0100, Pedro Alves wrote: > On 2022-06-02 17:52, Carl Love wrote: > > Kevin: > > > > On Wed, 2022-05-11 at 15:48 -0700, Kevin Buettner wrote: > > > On Wed, 11 May 2022 14:52:32 -0700 > > > Carl Love wrote: > > > > > > > + # Disable the Traceback Table generation, using the > > > > PowerPC > > > > specific > > > > + # gcc option, so the test gdb_test_multiple "disassemble > > > > eh2" > > > > will match > > > > > > What happens when some compiler other than gcc is used to run the > > > test? > > > > I updated the patch to set the compiler options for gcc and > > XLC. The > > test was run on AIX and passes with the patch. Note that AIX > > actually > > uses gcc to compile gdb. We tried compiling gdb with the xlc > > compiler. > > We ran into other gdb compilation errors that we were not able to > > resolve. We were able to verify that the xlc options to disable > > the > > Traceback Buffer were right but that was it. > > The compiler used to build gdb does not have to be the same used to > run tests. You can build gdb with gcc as usual, and then run tests > with some other compiler, like: > > $ make check RUNTESTFLAGS="CC_FOR_TARGET=foo CXX_FOR_TARGET=foo++" I asked the AIX person about using gdb compiled with gdb but compiling the test case with xlc. Here is his reply: I used gcc to compile gdb as it’s not easy to compile gdb with xlc. To use the xlc for compiling test programs I have modified the site.exp file with the Option “CC_FOR_TARGET” & “CXX_FOR_TARGET” to point to xlc binary path along with proper CFLAGS & CXXFLAGS. I confirmed that for compiling the eh_return.c xlc compiler is being used. Here is the compilation output. builtin_spawn -ignore SIGHUP /opt/IBM/xlc/16.1.0/bin/xlc -q64 -g -O0 -w -qdbgfmt=dwarf -c -g -o /.../gdb/testsuite/outputs/gdb.base/eh_return/eh_return0.o /.../gdb/testsuite/gdb.base/eh_return.c But since test program eh_return.c was written with gcc in mind it wasn’t able to compile and giving the undefined error. gdb compile failed, ld: 0711-317 ERROR: Undefined symbol: .__builtin_eh_return. So unfortunately, he wasn't able to actually run the gdb test but was able to verify the compilation of the test. Carl Love