From: Kevin Buettner <kevinb@redhat.com>
To: Tom Tromey <tromey@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Do not crash on recursive pointer types
Date: Sat, 15 Nov 2025 14:27:00 -0700 [thread overview]
Message-ID: <20251115142700.2b2e2819@f41-zbm-amd> (raw)
In-Reply-To: <20251114190203.2369142-1-tromey@adacore.com>
On Fri, 14 Nov 2025 12:02:03 -0700
Tom Tromey <tromey@adacore.com> wrote:
> In Ada, it's possible to create a recursive pointer type, or two
> mutually recursive pointer types. gdb will crash when reading the
> DWARF for these.
>
> These types aren't actually useful, and so are unlikely to appear in
> real code. Still, gdb shouldn't crash.
>
> This patch handles this case by noticing recursive pointer types and
> representing them as pointer-to-void.
A nice application of Robert W. Floyd's cycle detection algorithm!
Approved-by: Kevin Buettner <kevinb@redhat.com>
prev parent reply other threads:[~2025-11-15 21:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-14 19:02 Tom Tromey
2025-11-15 21:27 ` Kevin Buettner [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=20251115142700.2b2e2819@f41-zbm-amd \
--to=kevinb@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@adacore.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