From: Pedro Alves <pedro@palves.net>
To: Carl Love <cel@us.ibm.com>, Lancelot SIX <lsix@lancelotsix.com>
Cc: 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:57:12 +0100 [thread overview]
Message-ID: <b3401342-7e18-1209-a76a-eacd5bd34717@palves.net> (raw)
In-Reply-To: <4610920e52ea1bbeb5181c970887eb7cfe344f1a.camel@us.ibm.com>
On 2022-04-29 16:48, Carl Love via Gdb-patches wrote:
> On Fri, 2022-04-29 at 09:14 +0000, Lancelot SIX wrote:
> OK, I added the new test. It works as expected on PowerPC and on my
> Intel system.
>
> (gdb) PASS: gdb.cp/no-dmgl-verbose.exp: info types ^std::string$
> break f(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
>
> Breakpoint 1 at 0x10: file /home/carll/GDB/build-current/gdb/testsuite/../../../binutils-gdb-current/gdb/testsuite/gdb.cp/no-dmgl-verbose.cc, line 23.
>
> The additional test is good to have.
>
> The above suggested changes were tested on both PowerPC and Intel and
> pass as expected.
>
> Please let me know if the updated patch looks ok. Thanks.
So the file is called gdb.cp/no-dmgl-verbose.exp. "no-dmgl" most certainly means "no demangle".
However, the intro comment says:
# Test loading symbols from unrelocated C++ object files.
and indeed, the testcase only compiles an object:
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}.o" object {c++ debug}] != "" } {
untested "failed to compile"
return -1
}
... and loads that into gdb:
clean_restart ${testfile}.o
How is that related to "no demangle verbose" ? A mystery.
OK. Now, if we're not going to be testing that setting a breakpoint via the
typedef, like "b f(std::string)", WORKS (I thought GDB had code to make that work,
why doesn't it?), then what's the point of the test? Testing that the breakpoint
set at the non-typedef expansion of std::string is really no different from setting
a breakpoint at any other C++ function, so we could eliminate the std::string dependency.
It seems like something is missing here.
What did the original submission of the patch that added the test say?
next prev parent reply other threads:[~2022-04-29 16:57 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 [this message]
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
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=b3401342-7e18-1209-a76a-eacd5bd34717@palves.net \
--to=pedro@palves.net \
--cc=Ulrich.Weigand@de.ibm.com \
--cc=cel@us.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=lsix@lancelotsix.com \
--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).