From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 0Us1GIpqEGr3Ug8AWB0awg (envelope-from ) for ; Fri, 22 May 2026 10:39:06 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=TMfIwhw3; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=H+B2gAnT; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=TMfIwhw3; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=H+B2gAnT; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5A4EC1E0A3; Fri, 22 May 2026 10:39:06 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.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,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED 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 C94B81E091 for ; Fri, 22 May 2026 10:39:04 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4736C48F52D0 for ; Fri, 22 May 2026 14:39:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4736C48F52D0 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=TMfIwhw3; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=H+B2gAnT; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=TMfIwhw3; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=H+B2gAnT Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by sourceware.org (Postfix) with ESMTPS id D90BE48F52C9 for ; Fri, 22 May 2026 14:37:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D90BE48F52C9 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D90BE48F52C9 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779460666; cv=none; b=QP0ELI9wOPO+PQRYnbmYVVZDTsVjgKJlpaEpRaEhWMQgbAbT0Sg3BgQyb/H3oBUIJQH4Yt3PdH2vKmnhek37L3tfw4tklE2NUiGliKw11TYVbfwqOhj0QAUCvakT3hpynJ3x7zlv/NLsXJCbIDc4lFy1RyvNNrU1xZ4FzlKeSC8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1779460666; c=relaxed/simple; bh=OA222A424cHk4YBP7xBCPSwX60I9NvqbgrXoRek7HhM=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=TPZO5FVgwDU0Wp3TrYZV4cvkBcDfo6BkkCG13+AGUQYVBBzSWk52cUYiy9TBIHqbRgLG1I2DCYTs2FqDxDvX6cn8xbg2uriSpSmgO+0iFPDqeS7CZxM+TTrTU70aqjdhKfhgfUbXQQxaLb+Bs2nca2hgT2y/UTgiuM9BHKcHc60= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=TMfIwhw3; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=H+B2gAnT; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=TMfIwhw3; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=H+B2gAnT DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D90BE48F52C9 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D36F467414 for ; Fri, 22 May 2026 14:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1779460658; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tZOjxeEZqyzEuh5ug3xL4+KZRVSqMroCticQXrBIf2Y=; b=TMfIwhw3KewWndRlTGSRCjz/fFEhzpxvhNPgBRchMXDuRuqhWL4oqqwAhCDOPKCYI/rBET A54ef6ZY2JkjNissSA6LiP8eSniVM5MGPZVPTmgGWkUQZFiBvOFkgmckBg0ZdQwLEnoi13 NAQQD9DnT3Rhy/AlamokXZsYCIIbsLs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1779460658; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tZOjxeEZqyzEuh5ug3xL4+KZRVSqMroCticQXrBIf2Y=; b=H+B2gAnTxvJEiqJIk872KwBPUTMqvWWLzjgpKoU96ZtmPoHBrzQLt8xPQ1Vt8ISUnOLvnK l6wHpv9nbzQKiYAw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1779460658; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tZOjxeEZqyzEuh5ug3xL4+KZRVSqMroCticQXrBIf2Y=; b=TMfIwhw3KewWndRlTGSRCjz/fFEhzpxvhNPgBRchMXDuRuqhWL4oqqwAhCDOPKCYI/rBET A54ef6ZY2JkjNissSA6LiP8eSniVM5MGPZVPTmgGWkUQZFiBvOFkgmckBg0ZdQwLEnoi13 NAQQD9DnT3Rhy/AlamokXZsYCIIbsLs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1779460658; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tZOjxeEZqyzEuh5ug3xL4+KZRVSqMroCticQXrBIf2Y=; b=H+B2gAnTxvJEiqJIk872KwBPUTMqvWWLzjgpKoU96ZtmPoHBrzQLt8xPQ1Vt8ISUnOLvnK l6wHpv9nbzQKiYAw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id BB8B8593A8 for ; Fri, 22 May 2026 14:37:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 0AF2KzJqEGqTdAAAD6G6ig (envelope-from ) for ; Fri, 22 May 2026 14:37:38 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH 3/4] [gdb/testsuite] Add missing type_offset in gdb.dwarf/debug-names-tu.exp Date: Fri, 22 May 2026 16:37:36 +0200 Message-ID: <20260522143737.3373000-4-tdevries@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260522143737.3373000-1-tdevries@suse.de> References: <20260522143737.3373000-1-tdevries@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; internal_greylist_whitelist(0.00)[10.150.64.97]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; RCVD_TLS_ALL(0.00)[] 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 With llvm-dwarfdump we run into this warning: ... $ llvm-dwarfdump -a -v debug-names-tu > /dev/null warning: DWARF type unit at offset 0x00000028 has its relocated type_offset \ 0x00000028 pointing inside the header ... Fix this by adding the missing type_offset. Likewise in gdb.dwarf2/debug-names-bad-cu-index.exp. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34157 --- gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp | 6 ++++-- gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp b/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp index 10e649f06af..5d31414ba29 100644 --- a/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp +++ b/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp @@ -34,6 +34,8 @@ Dwarf::assemble { global $var } + declare_labels type_offset + cu { label cu_label } { compile_unit { DW_AT_language @DW_LANG_C @@ -47,11 +49,11 @@ Dwarf::assemble { } } - tu { label tu_label } 0x8ece66f4224fddb3 "" { + tu { label tu_label } 0x8ece66f4224fddb3 type_offset { type_unit {} { declare_labels int_type - structure_type { + type_offset: structure_type { DW_AT_name struct_with_int_member DW_AT_byte_size 4 sdata } { diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl b/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl index af3f263a273..bd48df6a894 100644 --- a/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl +++ b/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl @@ -39,6 +39,8 @@ Dwarf::assemble { global $var } + declare_labels type_label + cu { label cu_label version $dwarf_version } { compile_unit { DW_AT_language @DW_LANG_C @@ -52,13 +54,13 @@ Dwarf::assemble { } } - tu { label tu_label version $dwarf_version } 0x8ece66f4224fddb3 "" { + tu { label tu_label version $dwarf_version } 0x8ece66f4224fddb3 type_label { type_unit { DW_AT_language @DW_LANG_C } { declare_labels int_type - structure_type { + type_label: structure_type { DW_AT_name struct_with_int_member DW_AT_byte_size 4 sdata } { -- 2.51.0