From: Lancelot SIX <lsix@lancelotsix.com>
To: Keith Seitz <keiths@redhat.com>
Cc: Pedro Alves <pedro@palves.net>, Carl Love <cel@us.ibm.com>,
Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
gdb-patches@sourceware.org, Rogerio Alves <rogealve@br.ibm.com>
Subject: Re: [PATCH] Fix gdb.cp/no-dmgl-verbose.exp test
Date: Fri, 29 Apr 2022 17:23:18 +0000 [thread overview]
Message-ID: <20220429172308.znoukencrgwgfzav@ubuntu.lan> (raw)
In-Reply-To: <032437ea-2ef4-90f5-7b96-8a729bae2252@redhat.com>
On Fri, Apr 29, 2022 at 10:09:49AM -0700, Keith Seitz wrote:
> On 4/29/22 09:57, Pedro Alves wrote:
> > On 2022-04-29 16:48, Carl Love via Gdb-patches wrote:
> > > On Fri, 2022-04-29 at 09:14 +0000, Lancelot SIX wrote:
> >
> > So the file is called gdb.cp/no-dmgl-verbose.exp. "no-dmgl" most certainly means "no demangle".
> >
> > How is that related to "no demangle verbose" ? A mystery.
>
> I believe I remember some history of this...
>
> When I did the physname work years ago, a maintainer objected that the
> recorded physname for a function which takes a std::string was
> "reduced" to "std::string<blah blah blah>" instead of recording (and
> thus subsequently printing) "std::string" like other tools do. [He
> speciifcally mentioned "nm".]
>
> The "no-dmgl-verbose" refers to the demangler option, DMGL_VERBOSE,
> which I originally used when computing physnames. I believe this test's
> intention was to make sure that DMGL_VERBOSE didn't creep back into the
> code.
>
> [Background: At the time, the compiler did not output sufficient debuginfo
> for a bunch of symbols, such as ctors. Thus the physname computation
> was a way to "fill-in" this missing/necessary information.]
>
> There's a number of other workarounds for this "std::string"
> vs "std::string<blah blah blah>" (and others) in cp-support.c.
> See "ignore_typedefs". [Pardon if my explanation is imprecise.
> This was a looong time ago.]
>
> Keith
>
Hi,
Thanks for the history perspective.
I was digging in the commits logs, and this commit was introduced by
3f542ed1a314b4831f71ade5006d1926d58f8303. This test removed the
DMGL_VERBOSE option.
I mainly did that because I was wondering if the test name was still
appropriate (I kind of think it is not), but I do not have a "good" name
to propose just yet.
Best,
Lancelot.
prev parent reply other threads:[~2022-04-29 17:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-29 1:28 Carl Love
2022-04-29 9:14 ` Lancelot SIX
2022-04-29 15:48 ` Carl Love
2022-04-29 16:45 ` Bruno Larsen
2022-04-29 16:57 ` Pedro Alves
2022-04-29 17:09 ` Keith Seitz
2022-04-29 17:20 ` Pedro Alves
2022-04-29 17:26 ` Pedro Alves
2022-04-29 18:40 ` Pedro Alves
2022-04-29 19:13 ` Carl Love
2022-04-30 0:56 ` [PATCH] Fix "b func(std::string)", use DMGL_VERBOSE (was: Re: [PATCH] Fix gdb.cp/no-dmgl-verbose.exp test) Pedro Alves
2022-04-30 2:54 ` Carl Love
2022-04-30 21:11 ` Lancelot SIX
2022-05-02 15:46 ` Pedro Alves
2022-05-05 18:53 ` Pedro Alves
2022-04-30 1:00 ` [PATCH] Fix gdb.cp/no-dmgl-verbose.exp test Pedro Alves
2022-04-29 17:23 ` Lancelot SIX [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=20220429172308.znoukencrgwgfzav@ubuntu.lan \
--to=lsix@lancelotsix.com \
--cc=Ulrich.Weigand@de.ibm.com \
--cc=cel@us.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=keiths@redhat.com \
--cc=pedro@palves.net \
--cc=rogealve@br.ibm.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).