From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mQUdDpV/emo37RsAWB0awg (envelope-from ) for ; Mon, 10 Aug 2026 21:49:09 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=FDhEI39X; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 3689D1E166; Mon, 10 Aug 2026 21:49:09 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id DA5EF1E033 for ; Mon, 10 Aug 2026 21:49:08 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6D7874BB58B3 for ; Tue, 11 Aug 2026 01:49:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D7874BB58B3 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=FDhEI39X Received: from dog.elm.relay.mailchannels.net (dog.elm.relay.mailchannels.net [23.83.212.48]) by sourceware.org (Postfix) with ESMTPS id 9DFCA4BB589A for ; Tue, 11 Aug 2026 01:48:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9DFCA4BB589A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=palves.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9DFCA4BB589A Authentication-Results: sourceware.org; arc=none smtp.remote-ip=23.83.212.48 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786412896; cv=none; b=n1BKDrKq7h2qbk7JEJsF1emXimgfAy6ZzbKnU/fbxBSM6xn63fXGLM1a5xG3gxDdHqGrGSfIR6kN9kgs9G+X05IfPkjpntW/IDDr8f+B1XTtpg9TT2MtQqo5PdNm1N/jazMN0dfXGA/oyS4WhSfE4RlJcJBtHSF3/HhdTZzmYN0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786412896; c=relaxed/simple; bh=95LiTag7xBBCTHp9XdHjWDlrhmuisNfWbY4QuNOgKpU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FwnyhSEqa5ONP1+r2O1pLXszVdeY6E4wy2xTFb6E+uyrRXLTPTUEEaTVAfQpJM1Z+5J2v+H6SushDhslMqzwC7VWvYkBTA09HahqP0abRS1pTJDvBmsDEsYi959wgz/CfCYk6dPoF3HB+SGgzx7UFw3qDG76OPzqqKDY8VzljUc= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=FDhEI39X DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9DFCA4BB589A X-Sender-Id: dreamhost|x-authsender|pedro@palves.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9B7FF461489 for ; Tue, 11 Aug 2026 01:48:15 +0000 (UTC) Received: from pdx1-sub0-mail-a258.dreamhost.com (100-111-77-141.trex-nlb.outbound.svc.cluster.local [100.111.77.141]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4E755461D15 for ; Tue, 11 Aug 2026 01:48:11 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|pedro@palves.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|pedro@palves.net X-MailChannels-Auth-Id: dreamhost X-Hook-Towering: 04201cf3632fecad_1786412895496_4069302650 X-MC-Loop-Signature: 1786412895496:2057865853 X-MC-Ingress-Time: 1786412895496 Received: from pdx1-sub0-mail-a258.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.111.77.141 (trex/8.0.2); Tue, 11 Aug 2026 01:48:15 +0000 Received: from localhost (bl21-204-140.dsl.telepac.pt [2.82.204.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pedro@palves.net) by pdx1-sub0-mail-a258.dreamhost.com (Postfix) with ESMTPSA id 4hJvf25nkvz1066 for ; Mon, 10 Aug 2026 18:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=palves.net; s=dreamhost; t=1786412891; bh=Vp4qupnaEORthzfvbVTXjX9VBRjl2G6woDQgHT5g/y8=; h=From:To:Subject:Date:Content-Transfer-Encoding; b=FDhEI39XAQd+pE2r1PZtbjIaVepdNX1CFAoEMCR0QJElpQBHiKlTgWN6w1OlZz0Bm s+LjwWRy2mmvLJWEteH6eO5nMCOv8hDI4n1gP2l894Jf+zJabebkHnz92TZC7F3OHZ nGbnrobMIQ6rqi4pe6VLjDD5t0hmmNYYmO3rXsxi5knCg+N3DmR9DyHRG0USqcDh9Y tdJRQz6kazqGJvxRJbuf8H1GIxhXscXGhDKpfErVcm8+tDkIlTqh+mCLaApBGMWyY6 4YFEt4EtXWZ/y0ewzv6QzG6xMYBmZIu/vIJTcBhOnO2Iw0EYLkQbk7alZlrNe2Fg2Z Axr+mLO2BsZow== From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 7/7] gdb/testsuite: Handle "symtab" option on windows-msvc Date: Tue, 11 Aug 2026 02:45:58 +0100 Message-ID: <20260811014558.3606251-8-pedro@palves.net> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260811014558.3606251-1-pedro@palves.net> References: <20260811014558.3606251-1-pedro@palves.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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~public-inbox=simark.ca@sourceware.org On windows-msvc, lld-link does not emit a COFF symbol table by default, even with -debug or -debug:pdb (but does with -debug:dwarf), so most no-debug-info testcases fail, as they can't run to main, etc. Handle a "symtab" option request by passing -Wl,-debug:symtab to lld-link. Change-Id: Idfd81e80c24dc27f4878a572b8efbea4c4fe9269 --- gdb/testsuite/lib/gdb.exp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 084f6ff8358..772f69d9633 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -6838,6 +6838,18 @@ proc gdb_compile {source dest type options} { } else { error "No idea how to force DWARF-5 in this compiler" } + } elseif { $opt == "symtab" } { + if { [istarget "*-*-windows-msvc*"] } { + # lld-link does not emit a COFF symbol table by + # default, even with -debug or -debug:pdb. Note + # -debug:dwarf implies -debug:symtab, and order does + # not matter. Order matters only when settings + # conflict -- e.g., /debug:symtab /debug:nosymtab + # leaves symtab off (nosymtab wins, last-applied). + lappend new_options "ldflags=-Wl,-debug:symtab" + } else { + # All other systems emit a symbol table by default. + } } else { lappend new_options $opt } -- 2.54.0