From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2] [gdb/symtab] Fix dwarf version of DWO TU
Date: Tue, 21 Jan 2025 16:09:00 +0100 [thread overview]
Message-ID: <1e6e2875-acb5-40e7-99aa-d5d15d245b8e@suse.de> (raw)
In-Reply-To: <87ikq8pa0o.fsf@tromey.com>
On 1/21/25 14:32, Tom Tromey wrote:
>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
>
> Tom> When running test-case gdb.ada/access_tagged_param.exp with target board
> Tom> fission, we run into:
> Tom> ...
> Tom> (gdb) break pck.adb:19^M
> Tom> gdb/dwarf2/read.h:289: internal-error: version: \
> Tom> Assertion `m_dwarf_version != 0' failed.^M
> Tom> ...
>
> Tom> - && (cu->per_cu->version () == 2
> Tom> + && (cu->header.version == 2
>
> All the stuff in this area seems kind of horrible to me. Like, first of
> all, how can this even fail? It seems like the CU version should be set
> when setting up the reader.
Hi Tom,
thanks for the review.
The v1 (
https://sourceware.org/pipermail/gdb-patches/2024-October/212676.html )
takes the approach of making sure "cu->per_cu->version ()" is set.
Do you prefer that one?
Thanks,
- Tom
> And if not, what's gone wrong there?
> Relatedly, can the other callers of version() fail in the same way?
> Finally there aren't really that many callers of this method so I wonder
> if it can be removed, maybe making this code less fragile. Looking at
> it, I feel pretty sure if I needed a version check I'd probably write
> code to call this method but ... maybe that's unsafe?
>
> Tom
next prev parent reply other threads:[~2025-01-21 15:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 8:57 Tom de Vries
2025-01-21 13:32 ` Tom Tromey
2025-01-21 15:09 ` Tom de Vries [this message]
2025-03-03 20:02 ` Simon Marchi
2025-03-03 20:44 ` Simon Marchi
2025-03-03 21:22 ` 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=1e6e2875-acb5-40e7-99aa-d5d15d245b8e@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