From: Andrew Cagney <cagney@gnu.org>
To: Paul Hilfinger <hilfingr@gnat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [commit] Changes for architecture type vector in Ada
Date: Tue, 21 Sep 2004 15:28:00 -0000 [thread overview]
Message-ID: <415047F5.8030409@gnu.org> (raw)
In-Reply-To: <20040918223738.E613FF2B95@nile.gnat.com>
> The following patch is intended to bring the Ada sources in line with the
> C sources in their handling of language-specific types. (When I checked
> this is, I also revised my last ChangeLog entry to give the right, i.e.,
> official, e-mail address).
Thanks! Any complaints / suggestions on the interface (I'm not that
happy with it).
We[gdb community] only have all the others.
> Andrew, at some point I asked you a question relevant to this patch
> for which I seem to have mislaid any answer you may have given: If at
> some point in a language-specific file, one needs to refer to a
> language-specific type, what is the MC (methodologically correct)
> method for accessing that type? By name, as by
> language_lookup_primitive_type_by_name (seems a bit wasteful to have
> to do a search), or by some other means? Thanks.
I remember you asking the question, but when I went back I couldn't
re-find it :-(
Language lookup_primative_type_by_name struck be as just wrong. I even
tried to eliminate it but stumbled into a minefield (something to do
with how C & C++ are a hybrid, the details elude me).
My hunch is that Ada, and the other languages, should instead have
per-osabi local data (see reggroups for how to do this without needing
changes to the architecture vector) that contains the language specific
primitive types that they really need.
--
With this in place, and having looked through the code, I think we've just:
-- strip out the #ifdef GNAT_GDB code
(I'll send you a better way to maintain local changes off-list)
-- enable Ada
left.
Andrew
prev parent reply other threads:[~2004-09-21 15:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-18 22:37 Paul Hilfinger
2004-09-19 3:58 ` Eli Zaretskii
2004-09-19 8:24 ` Paul Hilfinger
2004-09-21 15:28 ` Andrew Cagney [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=415047F5.8030409@gnu.org \
--to=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=hilfingr@gnat.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