public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@adacore.com>
To: Christian Biesinger <cbiesinger@google.com>
Cc: Tom Tromey <tromey@adacore.com>,
	gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH 2/2] Decode Ada types in Python layer
Date: Tue, 22 Jun 2021 10:56:19 -0600	[thread overview]
Message-ID: <87wnqlu9cc.fsf@tromey.com> (raw)
In-Reply-To: <CAPTJ0XHB-XQoWJQtiGcqhrzUaK3u7xxF6f1x+R4TqmOS97W6JA@mail.gmail.com> (Christian Biesinger's message of "Fri, 18 Jun 2021 11:25:48 -0500")

>> I don't think there is a demangled_name method on type, only on symbol.
>> It may make sense to add one, though this is really only an issue for
>> Ada AFAIK.

Christian> Oops, yes, I got myself confused. But even so, should it respect the
Christian> "demangle" setting?

I don't think that would be all that useful really.
For one thing, that would mean some user option affects the python
API -- this can already happen, but it's a pain when it does.
If the encoded Ada name is needed, it would be better to add a separate
method.  But, I don't think it's needed.  It's just an artifact of the
way that GNAT worked around DWARF limitations in a particular era (an
ongoing era in some ways).

Tom

  reply	other threads:[~2021-06-22 16:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-17 19:12 [PATCH 0/2] Change Ada type names reported by Python Tom Tromey
2021-06-17 19:12 ` [PATCH 1/2] Add non-wrapping mode to ada_decode Tom Tromey
2021-06-17 19:12 ` [PATCH 2/2] Decode Ada types in Python layer Tom Tromey
2021-06-17 21:10   ` Christian Biesinger
2021-06-18 15:09     ` Tom Tromey
2021-06-18 16:25       ` Christian Biesinger
2021-06-22 16:56         ` Tom Tromey [this message]
2021-06-25 14:02 ` [PATCH 0/2] Change Ada type names reported by Python Tom Tromey

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=87wnqlu9cc.fsf@tromey.com \
    --to=tromey@adacore.com \
    --cc=cbiesinger@google.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).