Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947387 - Optionally add .debug_names (previously .gdb_index) (via gdb-add-index or find-debuginfo) to binaries
Summary: Optionally add .debug_names (previously .gdb_index) (via gdb-add-index or fin...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 933986
  Show dependency tree
 
Reported: 2025-01-03 13:26 UTC by Sam James
Modified: 2025-04-15 00:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
0001-estrip-add-FEATURES-indexdebug-to-create-a-debug-ind.patch (0001-estrip-add-FEATURES-indexdebug-to-create-a-debug-ind.patch,3.24 KB, patch)
2025-01-29 22:08 UTC, Sam James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-03 13:26:34 UTC
We could optionally run `gdb-add-index` on ELF when we're not stripping binaries to make gdb startup/parsing faster.

wrt bug 938763: If we adopt find-debuginfo, we can do this with find-debuginfo -i.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-03 13:29:10 UTC
https://fedoraproject.org/wiki/Changes/DebugInfoLldbIndex#Detailed_Description is a summary of the different index types, but we should check how up-to-date the information there is.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-03 13:31:59 UTC
We'd probably want `gdb-add-index -dwarf-5`.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-03 20:07:53 UTC
Given https://sourceware.org/bugzilla/show_bug.cgi?id=31363, we certainly do want -dwarf-5 to get .debug_names instead.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-29 22:08:43 UTC
Created attachment 917887 [details, diff]
0001-estrip-add-FEATURES-indexdebug-to-create-a-debug-ind.patch

Untested so far patch.