From patchwork Tue Feb 27 14:12:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahab Vahedi X-Patchwork-Id: 86450 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 0E04A3858287 for ; Tue, 27 Feb 2024 14:13:22 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [IPv6:2001:41d0:1004:224b::af]) by sourceware.org (Postfix) with ESMTPS id 871D93858C78 for ; Tue, 27 Feb 2024 14:12:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 871D93858C78 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=vahedi.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vahedi.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 871D93858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:41d0:1004:224b::af ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709043176; cv=none; b=HAm1T+Gz6RV119jTC9GaRzo2fHbkV+Xl8+NiXdXjx5wCap4TRrC3ILhgN8wvQiYDiDZqPIeFNLV8ounOyaCTnNnpIHtWSaThMEgqykrNLnecRylnnNDjkSvHCc6aKoGS35Tshp20YYbc3cM6kgXH9R/LcBHY2oP6MG5PVcj3/0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709043176; c=relaxed/simple; bh=+zBUfHTmNQHA97fz8oocNbQnJT/wDocDsiGoQV4W/QY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=X1IhEhGTi1fHts6TYgNsVQK0bhm6U7ddXmpTXicwXvBWkjLtveOAQWoJNB6Oj5s91lNDWcOeDFcbSJmTkNEeA0KlUsefW9gGYIkyAlG4qxMg6bR5RKs+URR3ETsZKxtduhLmNzR2buVbw1rAio1B0GPQXnqwLJJLXmFc2ONT5uo= ARC-Authentication-Results: i=1; server2.sourceware.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vahedi.org; s=key1; t=1709043172; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6x0H6RpaHiqf6DLi37nw2O35RCQ3hCJcBZhmEK63C34=; b=xhlKBcrz4zR/4mpB8waYoquxcqlGCr/LWri6R2H1jLQ1xgpitiaYRAgvQjOWiPF2+Xt55U OlIHZFaDdw9F8L2GpggA4KCVxoHgxORwbz9viSXXdmtjvAZy1/98nhdwnTrN2Pte20fjFG lGN0RuXFXFrUoWbyjCHxIBmnBAcVchNRSHOaI69Lq+TATTAVvKwD5vuCvI77ljLRaveZ/o 0ajeo9YUcp8Cib18JESqLKK/481JQTG2H/xRvZvww+3m8py/GGAVpb9ERMbTB4EJzLXBBp R9xE9IIrlq51/qy/yCpBWe/znX/avReTllDMOvlOvE7RzzhzdgusSEyPx5OxKA== From: Shahab Vahedi To: gdb-patches@sourceware.org Cc: Yuriy Kolerov , Shahab Vahedi Subject: [PUSHED] arc: Don't build arc-analyze-prologue.S with -g Date: Tue, 27 Feb 2024 15:12:40 +0100 Message-Id: <20240227141240.20690-1-list+gdb@vahedi.org> In-Reply-To: <20240222080219.51830-1-kolerov93@gmail.com> References: <20240222080219.51830-1-kolerov93@gmail.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 From: Yuriy Kolerov 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. Approved-By: Shahab Vahedi --- 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 32387c00169..b8d9a8fb75f 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 }