public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug ada/30726] [gdb/ada, cc-with-dwz] FAIL: gdb.ada/arr_acc_idx_w_gap.exp: enum_rep
Date: Sun, 06 Aug 2023 14:28:01 +0000 [thread overview]
Message-ID: <bug-30726-4717-t4OTLXUzIG@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30726-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=30726
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
With target board unix, looking at the debug info we have:
...
<0><81c>: Abbrev Number: 1 (DW_TAG_compile_unit)
<822> DW_AT_name : enum_with_gap.adb
<1><84c>: Abbrev Number: 4 (DW_TAG_enumeration_type)
<84d> DW_AT_name : enum_with_gap__enum_with_gaps
<2><86b>: Abbrev Number: 5 (DW_TAG_enumerator)
<86c> DW_AT_name : enum_with_gap__lit3
<870> DW_AT_const_value : 13
<0><9e9>: Abbrev Number: 1 (DW_TAG_compile_unit)
<9ef> DW_AT_name : enum_with_gap_main.adb
<1><a20>: Abbrev Number: 4 (DW_TAG_enumeration_type)
<a21> DW_AT_name : enum_with_gap__enum_with_gaps
<2><a3f>: Abbrev Number: 5 (DW_TAG_enumerator)
<a40> DW_AT_name : enum_with_gap__lit3
<a44> DW_AT_const_value : 13
<1><b4c>: Abbrev Number: 16 (DW_TAG_enumeration_type)
<b4d> DW_AT_name : enum_with_gap__enum_subrangeB
<b55> DW_AT_artificial : 1
<2><b6b>: Abbrev Number: 5 (DW_TAG_enumerator)
<b6c> DW_AT_name : enum_with_gap__lit3__2
<b70> DW_AT_const_value : 13
...
Dwz moves enum_with_gap__enum_with_gaps into a partial unit.
That somehow changes the symbol table.
With target board unix, the first item with canonical name lit3 is:
...
[721] ((cooked_index_entry *) 0x7fe8d8009b00)
name: enum_with_gap__lit3
canonical: lit3
DWARF tag: DW_TAG_enumerator
flags: 0x2 [IS_STATIC]
DIE offset: 0x86b
parent: ((cooked_index_entry *) 0x7fe8d8021fe0) [enum_with_gap]
...
With target board cc-with-dwz, it's instead:
...
[780] ((cooked_index_entry *) 0x7f9d1c0049c0)
name: enum_with_gap__lit3__2
canonical: lit3
DWARF tag: DW_TAG_enumerator
flags: 0x2 [IS_STATIC]
DIE offset: 0x23a5
parent: ((cooked_index_entry *) 0x7f9d1c025ad0) [enum_with_gap]
...
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2023-08-06 14:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-06 13:06 [Bug ada/30726] New: " vries at gcc dot gnu.org
2023-08-06 14:28 ` vries at gcc dot gnu.org [this message]
2023-08-06 14:39 ` [Bug ada/30726] " vries at gcc dot gnu.org
2023-08-06 15:05 ` tromey at sourceware dot org
2023-08-07 1:08 ` vries at gcc dot gnu.org
2023-09-06 13:04 ` vries at gcc dot gnu.org
2023-09-06 13:15 ` [Bug ada/30726] [gdb/ada] " vries at gcc dot gnu.org
2023-09-06 14:58 ` vries at gcc dot gnu.org
2023-09-06 15:27 ` vries at gcc dot gnu.org
2023-09-06 15:56 ` vries at gcc dot gnu.org
2023-09-06 18:02 ` vries at gcc dot gnu.org
2023-09-07 19:39 ` cvs-commit at gcc dot gnu.org
2023-09-07 19:41 ` vries at gcc dot gnu.org
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-30726-4717-t4OTLXUzIG@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).