public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Tom de Vries via Gdb-patches <gdb-patches@sourceware.org>
Cc: Tom de Vries <tdevries@suse.de>
Subject: Re: [PATCH][gdb/symtab] Redo "Fix assert in set_length"
Date: Fri, 23 Sep 2022 07:45:06 -0600	[thread overview]
Message-ID: <87sfki19y5.fsf@tromey.com> (raw)
In-Reply-To: <20220922130015.GA25067@delia.home> (Tom de Vries via Gdb-patches's message of "Thu, 22 Sep 2022 15:00:22 +0200")

>>>>> "Tom" == Tom de Vries via Gdb-patches <gdb-patches@sourceware.org> writes:

Tom> The fix is to not use the CU table in a .debug_names section to construct
Tom> all_comp_units, but instead use create_all_comp_units, and then verify the CU
Tom> table from .debug_names.  This also fixes PR25969, so remove the KFAIL.

Note that create_all_comp_units was apparently renamed, so this text
should be changed.

Part of the point of the indices is to avoid reading .debug_info until
needed -- so scanning it should not be necessary.  I assume this change
would cause a performance drop.

Checking whether performance suffers would be interesting.
If it doesn't, I'd be more inclined to do this.

Tom> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29572

In this one I see the comment:

    This happens fine for CUs, but in this case it's a PU.

Does .debug_names even work with partial units?  I thought there was
some hole in this area.  Maybe it is just "dwz -m" that can't work with
.debug_names?  I don't recall any more.

Tom> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=25969

I'm not sure I understand this one, but it says:

    AFAIU, to fix this, we'll have to do a top-level scan of the CUs,
    and build partial symbols for CUs are not contained in any index.

I think if the index is incomplete, and gdb can detect that, then it
should simply be discarded and a full scan done.  Trying to use both
.debug_names and a partial cooked index is going to make everything more
complicated for, IMO, very little gain.

Tom

  reply	other threads:[~2022-09-23 13:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22 13:00 Tom de Vries
2022-09-23 13:45 ` Tom Tromey [this message]
2022-09-27 12:44   ` Tom de Vries
2023-12-05 20:59 ` Tom Tromey
2023-12-06  9:34   ` Tom de Vries

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=87sfki19y5.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tdevries@suse.de \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).