From: Joel Brobecker <brobecker@adacore.com>
To: Pierre-Marie de Rodat <derodat@adacore.com>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH 2/2] Cache all static structures and reset cache during resolution
Date: Fri, 03 Apr 2015 17:52:00 -0000 [thread overview]
Message-ID: <20150403175226.GG4704@adacore.com> (raw)
In-Reply-To: <551E8BFB.1010000@adacore.com>
> gdb/ChangeLog:
>
> * ada-lang.c (template_to_static_fixed_type): Return input type
> when it is already fixed. Cache the input type itself when not
> creating a static fixed copy. Make it explicit that we never
> molestate the input type.
> * gdbtypes.c (resolve_dynamic_struct): Reset the
> TYPE_TARGET_TYPE field for resolved copies.
This one looks good to me too, but let's give people until
Mon Apr 13th to comment on the change in gdbtypes.c. I believe
this is the simplest approach, and, to me, the fact that the
TYPE_TARGET_TYPE is currently only used by Ada doesn't make it
a problem for handling it in generic code. But if others object,
then we can use the hack you had in ada-lang before you came up
with this version of the patch (the hack is based on the fixed
version of the type having a backlink to the original type it fixed,
thus allowing us to verify whether the cached TYPE_TARGET_TYPE
was copied from another type and is therefore irrelevant to this
type).
--
Joel
next prev parent reply other threads:[~2015-04-03 17:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-03 12:45 [PATCH 1/2] Preserve typedef layer when getting struct element Pierre-Marie de Rodat
2015-04-03 12:48 ` [PATCH 2/2] Cache all static structures and reset cache during resolution Pierre-Marie de Rodat
2015-04-03 17:52 ` Joel Brobecker [this message]
2015-04-24 14:15 ` Pierre-Marie de Rodat
2015-04-24 16:33 ` Joel Brobecker
2015-04-27 9:08 ` Pierre-Marie de Rodat
2015-04-03 17:38 ` [PATCH 1/2] Preserve typedef layer when getting struct element Joel Brobecker
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=20150403175226.GG4704@adacore.com \
--to=brobecker@adacore.com \
--cc=derodat@adacore.com \
--cc=gdb-patches@sourceware.org \
/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