public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] regresssion(internal-error) printing subprogram argument
Date: Fri, 15 Dec 2017 07:54:00 -0000	[thread overview]
Message-ID: <20171215075356.ab5f2wt652agojdk@adacore.com> (raw)
In-Reply-To: <cedc827c-ecbe-4aa3-5229-beface0f8c01@redhat.com>

> I gave the "literal" lookup type a try today, and it turns out
> not being so bad, I think.  See patch below.

Thanks!

> Thinking through this and experimenting a bit, I think I convinced
> myself that with the current symbol tables infrastructure,
> it's not literal _linkage_ names that we want to pass down, but
> instead literal _search_ names.  I.e., notice that I've switched
> the lookup_symbol call in question to pass down
> SYMBOL_SEARCH_NAME instead of SYMBOL_LINKAGE_NAME.  See
> comments in symtab.h in the patch.

I forgot about how the hashes were calculated, so what you are
saying makes sense.

I did a round of testing, both with the official testsuite as well
as ours, and I confirm what you see: issue fixed with no regression.
I reviewed the patch as well, and it looks good. In particular,
the choices you made in terms of what type of lookup to do, and
what name to pass made sense to me.

> The patch is not complete in the sense that there are
> symbol-lookup entry points that could be tweaked to pass
> down a symbol_name_match_type instead of assuming FULL.
> 
> And also, I know there are places in ada-lang.c that are doing
> what you were doing here too (the "<...>" verbatim trick) which
> could be adjusted.  But at least this fixes your testcase too,
> and causes no regressions.  So maybe we could do this incrementally
> and pass adjust functions to pass around a symbol_name_match_type
> as we find a need?  Functions that we miss passing down simply
> end up behaving like symbols_name_match_type::FULL, as today.

I like this approach. I'll try going through ada-lang.c after
this change gets in to see if I can spot some of the "<...">
tricks, and simplify them by using the new symbols_name_match_type
instead.

-- 
Joel

      parent reply	other threads:[~2017-12-15  7:54 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-13 10:37 Joel Brobecker
2017-12-14 19:02 ` Pedro Alves
2017-12-14 19:41   ` Pedro Alves
2017-12-15  9:48     ` Joel Brobecker
2017-12-15 11:02       ` Pedro Alves
2017-12-15 18:57         ` Pedro Alves
2018-01-03  4:33           ` Joel Brobecker
2018-01-04  9:48             ` Joel Brobecker
2018-01-04 12:39               ` Pedro Alves
2018-01-05 16:28             ` Pedro Alves
2018-01-16 11:54               ` Pedro Alves
2018-01-17  9:13                 ` Joel Brobecker
2018-01-26  3:51                   ` Joel Brobecker
2018-01-26 11:28                     ` Pedro Alves
2018-01-29 10:38                       ` Joel Brobecker
2018-01-29 15:33                         ` Pedro Alves
2018-01-29 15:52                           ` Joel Brobecker
2018-01-30  3:56                           ` Joel Brobecker
2018-02-05  9:57                             ` Joel Brobecker
2018-02-09  9:09                               ` [RFA/RFC] fix PR gdb/22670 (pb looking up some symbols when they have a linkage name) (was: "Re: [RFC] regresssion(internal-error) printing subprogram argument") Joel Brobecker
2018-02-21  3:02                                 ` PING: " Joel Brobecker
2018-03-19 21:22                                   ` PING^2: " Joel Brobecker
2018-03-26 14:26                                     ` PING^2: [RFA/RFC] fix PR gdb/22670 (pb looking up some symbols when they have a linkage name) Pedro Alves
2018-03-27 14:02                                       ` Joel Brobecker
2018-01-26  4:50                   ` [RFC] regresssion(internal-error) printing subprogram argument Joel Brobecker
2017-12-15 18:31       ` Pedro Alves
2017-12-15  7:54   ` Joel Brobecker [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=20171215075356.ab5f2wt652agojdk@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).