From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>,
Tom de Vries via Gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [RFC 0/7] [gdb/symtab, cc-with-dwz] Fix gdb.cp/breakpoint-locs.exp
Date: Mon, 2 Oct 2023 14:52:57 +0200 [thread overview]
Message-ID: <5bc6da84-58f1-4039-bce4-54c355a345c7@suse.de> (raw)
In-Reply-To: <10881561-aeb1-4aef-a057-7bdddb71802d@suse.de>
On 9/13/23 16:37, Tom de Vries via Gdb-patches wrote:
> On 9/12/23 17:23, Tom de Vries wrote:
>> But that does not address the parent entry calculation. In the
>> simplest case, the parent of an entry is the DIE parent, and it's
>> trivial to handle. In case the DIE parent is ignored, and the parent
>> is derived by following abstract_origin chains, and we end up with a
>> parent that is not processed yet, we simply have to defer. And if the
>> parent is in another shard, we have to defer until after the parallel
>> for (or alternatively, wait for other shards to be done, though I'm
>> not sure that level of complexity is worth it).
>>
>> The problem of incorrect parent entry calculation is not very visible
>> atm. If the parent entry calculation is incorrect, it quietly
>> defaults to no parent. And most of the time, that doesn't result in
>> incorrect gdb behaviour. This test-case is the exception. Which we
>> can work around by handling PUs differently. But we'll still quietly
>> calculate incorrect parent entries, unless we fix the generic case, as
>> this patch series proposes to do.
>
> I managed to write a test-case that demonstrates this problem
> independently of the gdb.cp/breakpoint-locs.exp test-case, filed here (
> https://sourceware.org/bugzilla/show_bug.cgi?id=30846 ).
>
I've submitted a patch series to fix this (
https://sourceware.org/pipermail/gdb-patches/2023-October/202882.html ).
Thanks,
- Tom
prev parent reply other threads:[~2023-10-02 12:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-25 15:55 Tom de Vries
2023-08-25 15:55 ` [RFC 1/7] [gdb/symtab] Factor out m_die_range_map and m_deferred_entries usage Tom de Vries
2023-08-25 15:55 ` [RFC 2/7] [gdb/symtab] Check effect in parent_map::set_parent Tom de Vries
2023-08-25 15:55 ` [RFC 3/7] [gdb/symtab] Handle nullptr parent " Tom de Vries
2023-08-25 15:55 ` [RFC 4/7] [gdb/symtab] Add parent_map::dump Tom de Vries
2023-08-25 15:55 ` [RFC 5/7] [gdb/symtab] Add debug_handle_deferred_entries Tom de Vries
2023-08-25 15:55 ` [RFC 6/7] [gdb/symtab] Add DW_TAG_inlined_subroutine entries in the cooked index for c++ Tom de Vries
2023-08-25 15:55 ` [RFC 7/7] [gdb/symtab] Resolve deferred entries, inter-shard case Tom de Vries
2023-09-08 18:56 ` [RFC 0/7] [gdb/symtab, cc-with-dwz] Fix gdb.cp/breakpoint-locs.exp Tom Tromey
2023-09-12 15:23 ` Tom de Vries
2023-09-13 14:37 ` Tom de Vries
2023-10-02 12:52 ` Tom de Vries [this message]
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=5bc6da84-58f1-4039-bce4-54c355a345c7@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/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).