From patchwork Tue Jun 18 00:17:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Harmstone X-Patchwork-Id: 1948910 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=harmstone.com header.i=@harmstone.com header.a=rsa-sha256 header.s=mail header.b=0X+lozJK; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W36r129zxz20KL for ; Tue, 18 Jun 2024 10:21:37 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 92874388211D for ; Tue, 18 Jun 2024 00:21:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.burntcomma.com (mail.burntcomma.com [IPv6:2a02:8012:8cf0:250::6d61:696c]) by sourceware.org (Postfix) with ESMTPS id 693FE3882062 for ; Tue, 18 Jun 2024 00:17:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 693FE3882062 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=harmstone.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=harmstone.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 693FE3882062 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a02:8012:8cf0:250::6d61:696c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718669865; cv=none; b=FPf02du4WT1VjhMLQcAYjnMadmZIkWYzeii8oubCaxOpURmBBmiiFYoeLrQVs4hKujHSN0y3KdFEZUHLMHfJ8cDaQ7/LuIX80CWeOkDjF+t82Dh0Ui+CdBE4YxVZC0rjspVrROTag20430Magmdy4t+sBdXQMjbCG9uLTx6SHCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718669865; c=relaxed/simple; bh=PMNX/zUPQ6H74dmiTsPXVDNDNcP9LQHvdudxDC90aVw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:Mime-Version; b=ex5kuk5UsHFLgj4/1zK9LjEm/Z/oViIOMD297Fnp781Dv+CfomyXCrp1eDOBH8eunDDsx+ekcd+HJ8jG7fvu2TjfRFB9ZeIAheEPDdC3nQVCcZmGYYbT7ROQElCwijC4RmR0piiTXFvLo84v8IyvfP0QCWmk7PCxpeY2VPmyoDY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost.localdomain (beren.burntcomma.com [IPv6:2a02:8012:8cf0:0:b62e:99ff:fee9:ad9f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by mail.burntcomma.com (Postfix) with ESMTPSA id 675E13CF0015; Tue, 18 Jun 2024 01:17:21 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harmstone.com; s=mail; t=1718669841; bh=t6P4XLB1G/VOMFZZWtEtLrYqaNtliTr/igtkhn98V3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=0X+lozJKJ8GUf+xUDV1v2luUciJAhLbchOMLOipqMQRWU1Sp7blR3BCQvOJPLo7yk Etc3DZDUJZea1X2sXhHZQ2NtwXSfFPJTtPGFR9gqtxV5lPUJ3YUOr2oxgqMCQNKC/f mmYfBbDwAPnPFYQAUTkfHY5CEGtOY+2hSZnkN0AY= From: Mark Harmstone To: gcc-patches@gcc.gnu.org Cc: Mark Harmstone Subject: [PATCH 03/11] Handle typedefs for CodeView Date: Tue, 18 Jun 2024 01:17:05 +0100 Message-ID: <20240618001713.24034-4-mark@harmstone.com> In-Reply-To: <20240618001713.24034-1-mark@harmstone.com> References: <20240618001713.24034-1-mark@harmstone.com> Mime-Version: 1.0 X-Spam-Status: No, score=-11.8 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org gcc/ * dwarf2codeview.cc (get_type_num): Handle typedefs. --- gcc/dwarf2codeview.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/dwarf2codeview.cc b/gcc/dwarf2codeview.cc index eb7c1270e31..5006a176260 100644 --- a/gcc/dwarf2codeview.cc +++ b/gcc/dwarf2codeview.cc @@ -1024,6 +1024,12 @@ get_type_num (dw_die_ref type) t->num = get_type_num_base_type (type); break; + case DW_TAG_typedef: + /* FIXME - signed longs typedef'd as "HRESULT" should get their + own type (T_HRESULT) */ + t->num = get_type_num (get_AT_ref (type, DW_AT_type)); + break; + default: t->num = 0; break;