From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) by sourceware.org (Postfix) with ESMTPS id 075D33858C2C for ; Tue, 4 Apr 2023 17:59:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 075D33858C2C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oo1-xc2b.google.com with SMTP id h1-20020a4adcc1000000b0053e9796cc7dso2458706oou.4 for ; Tue, 04 Apr 2023 10:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680631173; x=1683223173; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ASmZGbQgP2pFKhA6CKuI26etsVsEeCHCWnCtUyTnPx8=; b=E1jx/fUUzH3vaMhuqO58e2DK9Pi2Yb8d/xkwi/vadOGMEVTPCzGRrhrUJ9rq3OZS82 xLVm5ShzbNhecdA1d38kwS3KQbnAYnpH0l+k7BathcaPbH0DmBKF1wr2IdtdYxqeUDZ3 Bi0tpgc8GqC/yAV/bbFhoTg+Pvoh/iqCbA3oxC9ms/nJKLSf1vLlMTgCjpFrYLtHHxVj UInGl95EpjiwuaYLjvdCuBc3A9HBsLhn0twaskZDUrImtoKHgNBZAiC+5p3fo/82t0B7 1eAtrCttXk3dbI5HQJMgTFtzAveSFLST77wmYGVLkisUDoO7qH0HQXeYd4OHuU48Sw+t 4XHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680631173; x=1683223173; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ASmZGbQgP2pFKhA6CKuI26etsVsEeCHCWnCtUyTnPx8=; b=2CvRVw2X0mZ4N1thxXusBfU5iv0T3PICEgHh94dA3xdTK5KpwdCAsODJQMCWDlRNP/ sJXr4W/rFYryYZkRhYPim7XMrqsvZtyLkxpRFQg19xTtcvGVQ24OHxayc5rcDn5pfIy6 ar/3gli+YTmCHP0xTL4YTrynAfKhb+nrQ093CXP4QxVw3+sUjikdGQiVoKwPBAOHAlr1 6+V778HvvGa+Llgx8yadcaOBuC0zCAnxO/nhZAUnZfxmV60EuoK6vVt+EqPi+tA8b2p2 QGI/hcTz2Ki7EuXWppb0jZS8rwqwHcKSFVLXfWZ4KxmoEP8naHGu+DlQapKQxpSs/FK+ GDWw== X-Gm-Message-State: AAQBX9ehiG8fQOMdHA/PIvy+ffXg6WEnCLNUT9d7GN/JuOhlZl9nui69 RnmRnTbLYCECExMvv7j4+JJASKIHpd0M5RdNPAg= X-Google-Smtp-Source: AKy350ZV5zm7n9WOgj/VKzRcTESc+VVIXSn5YYFwo1WYf/QWXv7+Y2aOdYB6dEJpl1IgGQG4UugjSA== X-Received: by 2002:a4a:4942:0:b0:517:a7d1:9762 with SMTP id z63-20020a4a4942000000b00517a7d19762mr1332317ooa.7.1680631173256; Tue, 04 Apr 2023 10:59:33 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:d038:6863:874f:ebaa]) by smtp.gmail.com with ESMTPSA id 123-20020a4a1a81000000b0051ffe0fe11bsm5711793oof.6.2023.04.04.10.59.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 10:59:32 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Cc: Thiago Jung Bauermann Subject: [PATCH 2/2] gdb/testsuite: Default to assembler's preferred debug format in asm-source.exp Date: Tue, 4 Apr 2023 17:59:15 +0000 Message-Id: <20230404175915.288558-3-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230404175915.288558-1-thiago.bauermann@linaro.org> References: <20230404175915.288558-1-thiago.bauermann@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The stabs debug format is obsolete and there's no reason to think that toolchains still have good support for it. Therefore, if a specific debug format wasn't set in asm-source.exp then leave it to the assembler to decide which one to use. --- gdb/testsuite/gdb.asm/asm-source.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index 41bb3d1e677f..af852b731f5e 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -212,7 +212,7 @@ if { [string equal ${asm-flags} ""] } { } if { [string equal ${debug-flags} ""] } { - set debug-flags "-gstabs" + set debug-flags "-g" } # Allow the target board to override the debug flags.