public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/27930] New: gdb index does not handle DWARF 5 type units
@ 2021-05-29 13:46 tromey at sourceware dot org
2022-09-20 22:32 ` [Bug symtab/27930] " tromey at sourceware dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2021-05-29 13:46 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27930
Bug ID: 27930
Summary: gdb index does not handle DWARF 5 type units
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
In DWARF 5, a type unit can appear in .debug_info.
However, the gdb_index section does not handle this
situation -- it assumes that all type units appear in
.debug_types.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug symtab/27930] gdb index does not handle DWARF 5 type units
2021-05-29 13:46 [Bug symtab/27930] New: gdb index does not handle DWARF 5 type units tromey at sourceware dot org
@ 2022-09-20 22:32 ` tromey at sourceware dot org
2023-01-04 1:44 ` tromey at sourceware dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2022-09-20 22:32 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27930
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Probably we should just close this as part of a general move
to preferring .debug_names instead.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug symtab/27930] gdb index does not handle DWARF 5 type units
2021-05-29 13:46 [Bug symtab/27930] New: gdb index does not handle DWARF 5 type units tromey at sourceware dot org
2022-09-20 22:32 ` [Bug symtab/27930] " tromey at sourceware dot org
@ 2023-01-04 1:44 ` tromey at sourceware dot org
2025-01-20 11:54 ` tromey at sourceware dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-01-04 1:44 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27930
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |27453
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=27453
[Bug 27453] [meta] DWARF 5 support
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug symtab/27930] gdb index does not handle DWARF 5 type units
2021-05-29 13:46 [Bug symtab/27930] New: gdb index does not handle DWARF 5 type units tromey at sourceware dot org
2022-09-20 22:32 ` [Bug symtab/27930] " tromey at sourceware dot org
2023-01-04 1:44 ` tromey at sourceware dot org
@ 2025-01-20 11:54 ` tromey at sourceware dot org
2025-01-20 16:46 ` tromey at sourceware dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2025-01-20 11:54 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27930
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
There's a test for this, gdb.dwarf2/gdb-index-types-dwarf5.exp,
but from what I can see it only passes by accident.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug symtab/27930] gdb index does not handle DWARF 5 type units
2021-05-29 13:46 [Bug symtab/27930] New: gdb index does not handle DWARF 5 type units tromey at sourceware dot org
` (2 preceding siblings ...)
2025-01-20 11:54 ` tromey at sourceware dot org
@ 2025-01-20 16:46 ` tromey at sourceware dot org
2025-01-20 17:07 ` tromey at sourceware dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2025-01-20 16:46 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27930
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |16998
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=16998
[Bug 16998] perf improvements for searching GLOBAL_BLOCK
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug symtab/27930] gdb index does not handle DWARF 5 type units
2021-05-29 13:46 [Bug symtab/27930] New: gdb index does not handle DWARF 5 type units tromey at sourceware dot org
` (3 preceding siblings ...)
2025-01-20 16:46 ` tromey at sourceware dot org
@ 2025-01-20 17:07 ` tromey at sourceware dot org
2025-01-24 10:40 ` sam at gentoo dot org
2025-03-09 20:32 ` tromey at sourceware dot org
6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2025-01-20 17:07 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27930
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=31363
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug symtab/27930] gdb index does not handle DWARF 5 type units
2021-05-29 13:46 [Bug symtab/27930] New: gdb index does not handle DWARF 5 type units tromey at sourceware dot org
` (4 preceding siblings ...)
2025-01-20 17:07 ` tromey at sourceware dot org
@ 2025-01-24 10:40 ` sam at gentoo dot org
2025-03-09 20:32 ` tromey at sourceware dot org
6 siblings, 0 replies; 8+ messages in thread
From: sam at gentoo dot org @ 2025-01-24 10:40 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27930
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gentoo dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug symtab/27930] gdb index does not handle DWARF 5 type units
2021-05-29 13:46 [Bug symtab/27930] New: gdb index does not handle DWARF 5 type units tromey at sourceware dot org
` (5 preceding siblings ...)
2025-01-24 10:40 ` sam at gentoo dot org
@ 2025-03-09 20:32 ` tromey at sourceware dot org
6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2025-03-09 20:32 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27930
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
It turns out there is a check where, if there is not .debug_types,
then TUs are assumed to come from .debug_info:
dwarf2_section_info *section
= (per_bfd->types.size () == 1
? &per_bfd->types[0]
: &per_bfd->infos[0]);
So while this doesn't work in general, it can work in
a specific case. This isn't documented.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-03-09 20:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-29 13:46 [Bug symtab/27930] New: gdb index does not handle DWARF 5 type units tromey at sourceware dot org
2022-09-20 22:32 ` [Bug symtab/27930] " tromey at sourceware dot org
2023-01-04 1:44 ` tromey at sourceware dot org
2025-01-20 11:54 ` tromey at sourceware dot org
2025-01-20 16:46 ` tromey at sourceware dot org
2025-01-20 17:07 ` tromey at sourceware dot org
2025-01-24 10:40 ` sam at gentoo dot org
2025-03-09 20:32 ` tromey at sourceware dot org
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).