From patchwork Thu Feb 22 08:02:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuriy Kolerov X-Patchwork-Id: 86205 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 E1A043858D39 for ; Thu, 22 Feb 2024 08:03:20 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 7CD863858D37 for ; Thu, 22 Feb 2024 08:02:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7CD863858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7CD863858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::633 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708588974; cv=none; b=Phsj44DuhiHrTNdY0UZpJLX+M6FhNOo2qkc09FKTXfXZUYGDS4D/pdaB7Oo8qRVIe0qY+pJJKTy2cZLA2bhKZw60X+04wD1OaoT6qprJnB5ARGs0ZH0sY81ynNfxGML0PlcruHIkCTWBZ4ug64WOg9Q97MDv8p61oLENuvy3mUw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708588974; c=relaxed/simple; bh=7YvCBEyGVSXRPfHEoe9irxf0bh/rkti1EQ80BZ83QsA=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=PbEhTs4ceTXjm45DfeCUXqI0317NoAuqUsSploifeI+eYQBv3GVWOqG2rHQavxx3Cr7NbSSCmid+yCOCNCVpBQFcoGuw2mQt4GCSUS6BRbNJI6sDu47JyzvAs2bCpDdwK9WXBGrmFqzHfpyMIjmLKhBc9zGmEnStA1a6mtbb6TM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a3f299f828aso234386066b.1 for ; Thu, 22 Feb 2024 00:02:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708588962; x=1709193762; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gP64cVemEu9+chmWsNIl1ZWaE0hCdgQXegWef5QXu2I=; b=jUihKFLTRTpdQ6wQkhpXch8wGLkZe6rBEALIOx5TX6QmtEVDmnsTNN2QAwp3+ol26p nPK3p7RHb2YYjkelZ6R0K7SQHk94z4q5mTdNlxe5BY773Qe8BKxkeTTd9CWJLTnIthMy 3Po8XCPWwaJM0FODtBaWVYbk3qvDOhIpNrHdqtyyXIUCN4v1lJs/XBFrO2UhHLwWjEh4 xV41Z7nLWiXwz8BsnBPnXtPrz9D26iQKkeykB6c181G1UWK82o1Lt0If7XwOvyO0M+7r +YhyMr6Yp40xG3TStRvL3A2OwgVG+9urRjcc0iWScmWbhiKgxZVdyYA2SUl3hsvTX4B/ 1WFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708588962; x=1709193762; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gP64cVemEu9+chmWsNIl1ZWaE0hCdgQXegWef5QXu2I=; b=X3NFfkC9mjXXGs7pqFXBo/3t5zpoDUx6/ki2wUYsh7/Q+V+nQ9OqAUabrRmxTYl6VN vixfrp2uVb/tim15u5U3pXs/N5TCT1t/Lh98LjrK9QA2t+5LE8M6BPmZNekOwI4DqRKx G4vJ/eKPl2fmyDRe3qfC8ZEg5gFlnH6w/k2g85qzVodPvHT2L9vqePFX4YQX7WDPF6PK G0YOw+EDPLeiB0D+Uw1R/TgtFU4KlGc5JA7HLOksTYnN6dmRovZ45HlHT0sG9ucOsJgE VAp6QOsqYl1YhhiEC2zZsX/2v40rX+1+I1F1cj7wD6Z0igpAzZoDP10jYQAXuIEFAbM7 4Aqw== X-Gm-Message-State: AOJu0Yx/znDQzma8+p3TQo0/UHyGnNZ7yhC4TBAdTdjdvwmHuRVJtJ9Z /bW+b5Qp+RnTKzv20pUdPDvDdMeCdq3fWAHkmsqkKb4iXQsh3Ciq4aMvPEg1fWCpRDJ3TJE= X-Google-Smtp-Source: AGHT+IEgj/Bz3mMimEyKG43N4CGfLMhPGnfdtvCOzRoFhbpwDkKeZ3Le2ud2HpXbnue/BMjvPlHtQA== X-Received: by 2002:a17:906:130c:b0:a3f:7129:6b1a with SMTP id w12-20020a170906130c00b00a3f71296b1amr1094665ejb.63.1708588962459; Thu, 22 Feb 2024 00:02:42 -0800 (PST) Received: from localhost.localdomain ([2a00:cc47:20b1:3000:4f99:fe1f:2a1f:1530]) by smtp.gmail.com with ESMTPSA id tb21-20020a1709078b9500b00a3e51df2280sm4738634ejc.223.2024.02.22.00.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:02:41 -0800 (PST) From: Yuriy Kolerov To: gdb-patches@sourceware.org, shahab@synopsys.com Cc: Yuriy Kolerov Subject: [PATCH] arc: Don't build arc-analyze-prologue.S with -g Date: Thu, 22 Feb 2024 08:02:19 +0000 Message-Id: <20240222080219.51830-1-kolerov93@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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 arc-analyze-prologue.S test does not contain debug information thus it must be compiled without -g option. Otherwise GDB will try to unwind frames using debug information (which does not exist for .S code!) instead of analyzing frames manually. Signed-off-by: Yuriy Kolerov --- gdb/testsuite/gdb.arch/arc-analyze-prologue.exp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp index f414d9ccde0..371858ec0bc 100644 --- a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp +++ b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp @@ -19,7 +19,13 @@ require {istarget "arc*-*-*"} standard_testfile .S -if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { +# arc-analyze-prologue.S test does not contain debug information thus it must +# be compiled without -g option. Otherwise GDB will try to unwind frames using +# debug information (which does not exist for .S code!) instead of analyzing +# frames manually. +set options {} + +if { [prepare_for_testing "failed to prepare" $testfile $srcfile $options] } { return -1 }