From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mU2qMxkVqGpcUwwAWB0awg (envelope-from ) for ; Mon, 14 Sep 2026 11:39:05 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=tJsHVXTc; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id CA2E21E066; Mon, 14 Sep 2026 11:39:05 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 404061E01F for ; Mon, 14 Sep 2026 11:39:05 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E076D4B9DB57 for ; Mon, 14 Sep 2026 15:39:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E076D4B9DB57 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=tJsHVXTc Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 1E1754BA903E for ; Mon, 14 Sep 2026 15:38:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1E1754BA903E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1E1754BA903E Authentication-Results: sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789400320; cv=none; b=moVJf5wsIX/UyC27LLtjpzQKAAxZ4L4Owu7wlMuAL/jgUVISmNjABjhP3scyuJhPGpZspHsWfkgjjPEOm07ilktzrHvmUnlQXXZNQF+AIdtijkYR7dwxLvxOuq9ccsLTWZhPFYRKl2BKSZutMPWRuog8Natj6rdIl64m0MCMSEc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789400320; c=relaxed/simple; bh=kLV/CTLrt057UEaWyYeflSvoXa1XcbiDyO2TIwV1rU8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=DjHZIHRlpJd76sZYN0mhuzw2YpuwQEZ1ZbKmhW1uYF06ZvJIc0NpMGncgtufJpOb5stjLmMOEmjZv9B6MLXNmpsci0kaPv1PD+twbXA/v04azcXwMj56JWAtkRaRdcZf6fLu32wugGIi5WCslQ2kM9IbYShiDffPEEIfYqMYTO0= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=tJsHVXTc reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E1754BA903E Received: from eig-obgw-6004b.ext.cloudfilter.net ([10.0.30.210]) by cmsmtp with ESMTPS id 66zex0h3wv0nd68lTxbzYK; Mon, 14 Sep 2026 15:38:39 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 68lSxxIa9n6N568lSxUF6F; Mon, 14 Sep 2026 15:38:38 +0000 X-Authority-Analysis: v=2.4 cv=LJJmQIW9 c=1 sm=1 tr=0 ts=6aa814ff a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=VdqzKS8jKosA:10 a=ItBw4LHWJt0A:10 a=GAGF6fUGwBGDtorl_swA:9 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=teR/cZcY7ws51Kfea/LaN0Eb7T5CHlGYejqxvOg4FTE=; b=tJsHVXTcfJ3PKTEtfrg7CLFnzX kmR8MysMLvx23+0toUOZuIKr5hqaA1L1vmfmc5Gx2AYXQcE5a1fKONnlMY+EPNkDq1SPlC3rwanoo mew4YFBhPXazaLrmXnj+uUiIm; Received: from 75-166-229-74.hlrn.qwest.net ([75.166.229.74]:48230 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100) (envelope-from ) id 1x68lR-00000000mhl-3UX7; Mon, 14 Sep 2026 09:38:37 -0600 From: Tom Tromey To: Simon Marchi Cc: Andrew Burgess , Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCHv3] gdb: resolve class name via DW_AT_signature in cooked index In-Reply-To: (Simon Marchi's message of "Mon, 14 Sep 2026 10:57:34 -0400") References: <295672ce0ea0bf20911fbbc997f38fe9f62b19be.1787952498.git.aburgess@redhat.com> <897f5eb957bdfd90cd3fd5efa662021ed5c2aef2.1788269262.git.aburgess@redhat.com> <1a67b29f-e2f1-480a-ae2b-e0d0d5acfdca@simark.ca> <874ifvy4u7.fsf@tromey.com> <87ecewc6gn.fsf@redhat.com> X-Attribution: Tom Date: Mon, 14 Sep 2026 09:38:36 -0600 Message-ID: <878q537shv.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.229.74 X-Source-L: No X-Exim-ID: 1x68lR-00000000mhl-3UX7 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-229-74.hlrn.qwest.net (prentzel) [75.166.229.74]:48230 X-Source-Auth: tom+tromey.com X-Email-Count: 8 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNpsq8qUNrONANIeFd5zRnEGrVjBsm6oqjfPOpvaOaHodqwMKqJRvxZiLpsDcC7cscsTir0F4YUod1WKf2vuqZVphvr2FTdO4AqrEGZnRC0NE55wE0A9 g9GAuf5zxXRcDlWErak6FZ66QiKy5l2saTTmuYraGfr01b7KKsL7+axoZx/fqUPyOlQRJXyAp57LnJNCJSbf0obCHkjZ+ljTwC8= 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 Simon> That's why I was wondering, but really I am not opposed to a flag, I Simon> just wanted to know the rationale. We have 1 bit free in Simon> cooked_index_flag, so it wouldn't take up any more space. It looks that way because of the underlying type, but that is just a convenient choice: (gdb) ptype/o cooked_index_entry /* offset | size */ type = class cooked_index_entry : public allocate_on_obstack { public: /* 0 | 8 */ const char *name; /* 8 | 8 */ const char *canonical; /* 16 | 4 */ dwarf_tag tag; /* 20 | 1 */ cooked_index_flag flags; /* 21: 0 | 4 */ language lang : 5; /* XXX 3-bit hole */ /* XXX 2-byte hole */ We actually have 16 more bits available if we need them. Though maybe only 8 of those are easily usable. Tom