From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id DF1953858C56 for ; Mon, 28 Mar 2022 15:21:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DF1953858C56 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22SF8Ylo004036 for ; Mon, 28 Mar 2022 15:21:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3f3dykt8yf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 28 Mar 2022 15:21:10 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 22SFA588011738 for ; Mon, 28 Mar 2022 15:21:09 GMT Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0b-001b2d01.pphosted.com with ESMTP id 3f3dykt8y6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Mar 2022 15:21:09 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 22SFHPJ3022051; Mon, 28 Mar 2022 15:21:08 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma04wdc.us.ibm.com with ESMTP id 3f1tf9e3vf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Mar 2022 15:21:08 +0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22SFL8sm31130010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Mar 2022 15:21:08 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1A82D6A057; Mon, 28 Mar 2022 15:21:08 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C042E6A04F; Mon, 28 Mar 2022 15:21:07 +0000 (GMT) Received: from li-e362e14c-2378-11b2-a85c-87d605f3c641.ibm.com (unknown [9.211.92.208]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 28 Mar 2022 15:21:07 +0000 (GMT) Message-ID: <45f13f3998d4e36b1c7a84ab8b676718249c6d28.camel@us.ibm.com> Subject: Re: [PING] [PATCH] Fix for gdb.base/solib-search.exp test. From: Carl Love To: dje@google.com, gdb-patches@sourceware.org Cc: Will Schmidt , Rogerio Alves Date: Mon, 28 Mar 2022 08:21:07 -0700 In-Reply-To: <8fe6f3bee129c0a3159d3ef57c942b9473255d8d.camel@us.ibm.com> References: <8fe6f3bee129c0a3159d3ef57c942b9473255d8d.camel@us.ibm.com> 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: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: _OD5EKAuCenLNUSZS4YlTXB28ne6c3-f X-Proofpoint-GUID: e6YONeyy0-wkwjIT4CZthEzUQisk7bBl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-28_06,2022-03-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 mlxscore=0 clxscore=1015 malwarescore=0 spamscore=0 bulkscore=0 impostorscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203280087 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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, 28 Mar 2022 15:21:12 -0000 On Tue, 2022-03-22 at 14:49 -0700, Carl Love wrote: > GDB maintainers: > > The following patch fixes the setting of the variable right_lib_flags > in the solib-search.exp test. With the fix the test now run > correctly > on Powerpc. > > The patch has been tested on a Power 10 system. > > Please let me know if the patch is acceptable for mainline gdb. > Thanks. > > Carl Love > > --------------------------------------------------- > Fix for gdb.base/solib-search.exp test. > > The variable right_lib_flags is not being set correctly to define > RIGHT. > The value RIGHT is needed to force the address of the library > functions > lib1_func3 and lib2_func4 to occur at different address in the wrong > and > right libraries. > > With RIGHT defined correctly, functions lib1_func3 and lib2_func4 > occur > at different addresses the test runs correctly on Powerpc. > --- > gdb/testsuite/gdb.base/solib-search.exp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gdb/testsuite/gdb.base/solib-search.exp > b/gdb/testsuite/gdb.base/solib-search.exp > index eaabe508bf0..202e79d85de 100644 > --- a/gdb/testsuite/gdb.base/solib-search.exp > +++ b/gdb/testsuite/gdb.base/solib-search.exp > @@ -54,7 +54,7 @@ set binfile2_lib [standard_output_file > ${libname2}.so] > > set lib_flags [list debug ldflags=-Wl,-Bsymbolic] > set wrong_lib_flags "$lib_flags additional_flags=-DARRAY_SIZE=1" > -set right_lib_flags "$lib_flags additional_flags=-DARRAY_SIZE=8192 > -DRIGHT" > +set right_lib_flags "$lib_flags additional_flags=-DARRAY_SIZE=8192 > additional_flags=-DRIGHT" > > # Binary file. > standard_testfile .c