public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "simon.marchi at polymtl dot ca" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug macros/29063] Handle macinfo section and tags
Date: Wed, 13 Apr 2022 21:56:35 +0000	[thread overview]
Message-ID: <bug-29063-4717-iFAuPZXwGw@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29063-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=29063

Simon Marchi <simon.marchi at polymtl dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon.marchi at polymtl dot ca

--- Comment #1 from Simon Marchi <simon.marchi at polymtl dot ca> ---
GDB does handle them, it's just that the DW_MACINFO_* defines happen to have
the same value has the DW_MACRO_* ones, and GDB only lists the DW_MACRO_* ones
in its switch-cases.

Which version of clang are you using?  And which linker/version are you using? 
The linker version affects the generation of the line header table, which is
used by GDB to create macro_source_file, so the linker has an influence here.

With clang 13 and ld 2.34 (which clang uses by default on my Ubuntu 20.04), I
get:

$ make check TESTS="gdb.base/macscp.exp" RUNTESTFLAGS="CC_FOR_TARGET=clang-13"
...
FAIL: gdb.base/macscp.exp: info macro FROM_COMMANDLINE

                === gdb Summary ===

# of expected passes            319
# of unexpected failures        1
# of known failures             19

The failure is due to this:

https://sourceware.org/bugzilla/show_bug.cgi?id=29034

If you see more failures, there must be something else.  I'd be curious to
know, because I'm currently working on fixing macro printing for various cases
of binaries compiled with both gcc and clang.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2022-04-13 21:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-13 17:40 [Bug macros/29063] New: " blarsen at redhat dot com
2022-04-13 21:56 ` simon.marchi at polymtl dot ca [this message]
2022-04-18 13:37 ` [Bug macros/29063] " tromey at sourceware dot org
2022-04-18 19:17 ` blarsen at redhat dot com

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-29063-4717-iFAuPZXwGw@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).