Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Keith Seitz <keiths@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Typedef'd method parameters [0/4]
Date: Mon, 25 Apr 2011 20:53:00 -0000	[thread overview]
Message-ID: <m3fwp6t5mi.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4DB09E6C.8000202@redhat.com> (Keith Seitz's message of "Thu, 21	Apr 2011 14:15:24 -0700")

>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:

Keith> I've attempted to split this up into four different patches to help
Keith> facilitate review, but to be honest, I'm not sure how helpful this
Keith> split is going to be, but I'll leave it to maintainers to ask for
Keith> whatever would help them digest this easiest.

I think this split was pretty good.
I didn't try to read the combined patch, so I can't actually say whether
it helped :-)

Keith> The inability to use typedef'd parameter types arises from the
Keith> fact that we do fairly literal lookups in the symbol table from
Keith> decode_line_1 et al.

I have often thought that maybe this is something we would want to fix.

Instead of storing `namesp::klass::method(int)' in the symbol table,
maybe we could just have an entry for "namesp", which would itself
contain a symbol table for the namespace, and so on, down to an entry
for "method" that would contain all the method overloads.

This would be a big change, though.  And I do have to wonder what
concrete benefits would arise from it, aside from "work the way
everybody expects".  Maybe it would let us make the DWARF reader lazier.

Keith> A note on the test suite: I propose to get these all approved and
Keith> commit in one go. If done this way, no test suite regressions should
Keith> occur. Or at least they don't show up here. :-)

I would not mind if the cp-name-parser.y patch were committed
separately.  I see it as a separate cleanup.  But, it is not very
important, and if you have a single patch ready, then don't bother.

Keith> Just a side note for maintainers, since I know this is going to
Keith> come up: I have tried my best to consolidate name
Keith> canonicalization, but there are a bunch of problems that arise
Keith> from attempting to do this. I believe the solution proposed here
Keith> is the most consistent from an API perspective -- everything
Keith> still acts the way it should (and has). The alternative is to
Keith> canonicalize_no_typedefs before anyone calls lookup_symbol or
Keith> lookup_symbol_in_language. I rejected this approach.

I think the approach you took is fine, but I am curious to know why you
rejected the other.

Tom


  reply	other threads:[~2011-04-25 20:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-21 21:15 Keith Seitz
2011-04-25 20:53 ` Tom Tromey [this message]
2011-05-12 21:28 ` Keith Seitz
2011-05-16 15:49   ` [rfc] physname cross-check [Re: [RFA] Typedef'd method parameters [0/4]] Jan Kratochvil
2011-05-17 18:15     ` Keith Seitz
2011-05-17 18:33       ` Jan Kratochvil
2011-05-17 19:04         ` Keith Seitz
2011-05-17 21:01       ` Tom Tromey
2011-05-19 23:04       ` [rfc] physname cross-check #2 Jan Kratochvil

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=m3fwp6t5mi.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=keiths@redhat.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