Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simark@simark.ca>
Cc: Andrew Burgess <aburgess@redhat.com>,
	 Tom Tromey <tom@tromey.com>,
	gdb-patches@sourceware.org
Subject: Re: [PATCHv3] gdb: resolve class name via DW_AT_signature in cooked index
Date: Mon, 14 Sep 2026 09:38:36 -0600	[thread overview]
Message-ID: <878q537shv.fsf@tromey.com> (raw)
In-Reply-To: <dd8656be-da3d-4353-8cdd-faf02a9becaf@simark.ca> (Simon Marchi's message of "Mon, 14 Sep 2026 10:57:34 -0400")

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<cooked_index_entry> {
                             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

  reply	other threads:[~2026-09-14 15:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-19 10:03 [PATCH] [GDB 18] " Andrew Burgess
2026-08-21 17:07 ` Tom Tromey
2026-08-28 21:30 ` [PATCHv2] " Andrew Burgess
2026-09-01 13:31   ` [PATCHv3] " Andrew Burgess
2026-09-10 16:11     ` Simon Marchi
2026-09-11 19:18       ` Tom Tromey
2026-09-12  2:06         ` Simon Marchi
2026-09-14 13:23           ` Andrew Burgess
2026-09-14 14:57             ` Simon Marchi
2026-09-14 15:38               ` Tom Tromey [this message]
2026-09-15 10:25               ` Andrew Burgess
2026-09-15 15:01                 ` Tom Tromey
2026-09-15 15:55                   ` Simon Marchi
2026-09-15 17:21                     ` Simon Marchi
2026-09-14 15:36             ` Tom Tromey
2026-09-10 16:18     ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878q537shv.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=aburgess@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox