From patchwork Tue Nov 21 03:53:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 80392 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7BC5F385829A for ; Tue, 21 Nov 2023 03:53:40 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 0EA8E3858D38 for ; Tue, 21 Nov 2023 03:53:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0EA8E3858D38 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0EA8E3858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700538802; cv=none; b=kHk8LQ17wK0kDGsarwTAeE5Getsq/hxTlM4DBarxOe3noe9dGgHfaq/q/F3FWWrXwt+AZjfKyWRV7KK+EVZNH/YnLkyqScCyMomYN5fqo1ssbXA8kKgmX4WzTwzP6YMGnS2zrLlbxmvUAGqrbUPLHdWz52XO1liNmPwd4uvNHes= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700538802; c=relaxed/simple; bh=BTkfsC3nsDr9n9xeiRVjnA24KTOSHroRiTr6lD+nmSE=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=ZmmWV6NhtAnlLWaJ3mc/SyK5SBnVRYG7A2fAT1h3GU6KftZWl2127mlvraoPgeJPxlr3LiThSBGLBmKXBPbwg46WwhhE3F3gsvj3aSs92KAUHQ70N4lNHGHGck4CcIt026S+u9ZW0z+/fcSSrASCOp9t1AXCJ0GrqhBAKqRgg9o= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5001a.ext.cloudfilter.net ([10.0.29.139]) by cmsmtp with ESMTPS id 5Bpyrpjok6nOZ5Hp9rzrP0; Tue, 21 Nov 2023 03:53:19 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 5Hp8rCu7nkTVW5Hp9r6qRp; Tue, 21 Nov 2023 03:53:19 +0000 X-Authority-Analysis: v=2.4 cv=a58jSGeF c=1 sm=1 tr=0 ts=655c29af a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=BNY50KLci1gA:10 a=Qbun_eYptAEA:10 a=eoaZ9IUwQebqolqbARkA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=To:In-Reply-To:References:Message-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=glmK8V+hbgNASKf4HzWOgrO4LVanGvZNgIN266fIBFc=; b=cGQ5m74/bQKvtucTy9oZEptTwx 5H7OJqmdkGvqOseQyWm92zDHRAxcWn27hPqsn5MBMbxoH1mzjqDIUrjTVDTNQgv/DRlK1Y2v+aR8r Lcef91nZxZYHdZsvzhlGmlJEc; Received: from 97-122-77-73.hlrn.qwest.net ([97.122.77.73]:47856 helo=[192.168.0.21]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1r5Hp8-0040be-2K for gdb-patches@sourceware.org; Mon, 20 Nov 2023 20:53:18 -0700 From: Tom Tromey Date: Mon, 20 Nov 2023 20:53:34 -0700 Subject: [PATCH 03/29] Make nsalias.exp more reliable MIME-Version: 1.0 Message-Id: <20231120-submit-domain-hacks-2-v1-3-29650d01b198@tromey.com> References: <20231120-submit-domain-hacks-2-v1-0-29650d01b198@tromey.com> In-Reply-To: <20231120-submit-domain-hacks-2-v1-0-29650d01b198@tromey.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.77.73 X-Source-L: No X-Exim-ID: 1r5Hp8-0040be-2K X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-77-73.hlrn.qwest.net ([192.168.0.21]) [97.122.77.73]:47856 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfOZw1r9TPullGFA6yDiVfNWHH0HtsiCJrs9bOJRp8z8969CDaCScYGGqSK2PJhDafkwaGKIl6DE0CFQQTSuaYIroPXfu+8tgbzgvMDekcXooYVohaOvz tAOun3XGaO/+vkn6/Rt9itbcKSwllnMs9NTn4HgTq1/fQJnq2zT7CaYjlFRllD/txD+4hnz1S/Lgu/IY99xnxRLIONPIksU3h6Q= X-Spam-Status: No, score=-3024.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org nsalias.exp tries to detect a complaint that is issued when expanding a CU. However, the test is a bit funny in that, while gdb does currently expand the CU and issue the complaint, it also emits this error: No symbol "N100" in current context. This series will change gdb such that this CU is not expanded -- which makes sense, the symbol in question doesn't actually match the lookups that are done. So, to make the test more robust, a direct request to expand symtabs is done instead. --- gdb/testsuite/gdb.cp/nsalias.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.cp/nsalias.exp b/gdb/testsuite/gdb.cp/nsalias.exp index 2727041f074..9c919948f11 100644 --- a/gdb/testsuite/gdb.cp/nsalias.exp +++ b/gdb/testsuite/gdb.cp/nsalias.exp @@ -324,5 +324,5 @@ if { $readnow_p } { global gdb_file_cmd_msg gdb_assert {[regexp $re $gdb_file_cmd_msg]} $test } else { - gdb_test "print N100::x" $re $test + gdb_test "maint expand-symtabs" $re $test }