public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/27966] macro tests failing when using -gdwarf-5 -gsplit-dwarf
Date: Thu, 05 Jan 2023 01:42:55 +0000 [thread overview]
Message-ID: <bug-27966-4717-EvR0GYBSBw@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27966-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=27966
Simon Marchi <simark at simark dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #3 from Simon Marchi <simark at simark dot ca> ---
(In reply to Tom Tromey from comment #2)
> I usually move the bugs to "waiting" when there's a question.
> That way when we stumble over it again in N years we know we
> can just close it.
That's a good idea. However, here I'll move it to NEW (i.e. confirmed),
because the main point of the bug is still valid. With the test binary
generated with:
$ make check TESTS=gdb.base/macscp.exp RUNTESTFLAGS="CC_FOR_TARGET=clang
CFLAGS_FOR_TARGET='-gdwarf-5 -gsplit-dwarf'"
I get:
$ ./gdb -q -nx --data-directory=data-directory
/home/simark/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/macscp/macscp
-ex "b macscp2_2" -ex r -ex "info macro WHERE" -batch
...
The symbol `WHERE' has no definition as a C/C++ preprocessor macro
at /home/simark/src/binutils-gdb/gdb/testsuite/gdb.base/macscp2.h:22
included at /home/simark/src/binutils-gdb/gdb/testsuite/gdb.base/macscp1.c:1
Whereas with:
$ make check TESTS=gdb.base/macscp.exp RUNTESTFLAGS="CC_FOR_TARGET=clang"
I get:
$ ./gdb -q -nx --data-directory=data-directory
/home/simark/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/macscp/macscp
-ex "b macscp2_2" -ex r -ex "info macro WHERE" -batch
...
Defined at /home/simark/src/binutils-gdb/gdb/testsuite/gdb.base/macscp2.h:16
included at /home/simark/src/binutils-gdb/gdb/testsuite/gdb.base/macscp1.c:61
#define WHERE before macscp2_2
--
You are receiving this mail because:
You are on the CC list for the bug.
prev parent reply other threads:[~2023-01-05 1:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-08 7:24 [Bug gdb/27966] New: " sourav0311 at gmail dot com
2021-06-08 7:25 ` [Bug gdb/27966] " sourav0311 at gmail dot com
2023-01-04 1:44 ` tromey at sourceware dot org
2023-01-04 17:23 ` simark at simark dot ca
2023-01-04 22:37 ` tromey at sourceware dot org
2023-01-05 1:42 ` simark at simark dot ca [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=bug-27966-4717-EvR0GYBSBw@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=gdb-prs@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).