Unverified Commit 16711b43 authored by cmtice's avatar cmtice Committed by GitHub
Browse files

[lld][ELF] Add --debug-names to create merged .debug_names. (#86508)



`clang -g -gpubnames` (with optional -gsplit-dwarf) creates the
`.debug_names` section ("per-CU" index). By default lld concatenates
input `.debug_names` sections into an output `.debug_names` section.
LLDB can consume the concatenated section but the lookup performance is
not good.

This patch adds --debug-names to create a per-module index by combining
the per-CU indexes into a single index that covers the entire load
module. The produced `.debug_names` is a replacement for `.gdb_index`.

Type units (-fdebug-types-section) are not handled yet.

Co-authored-by: default avatarFangrui Song <i@maskray.me>

---------

Co-authored-by: default avatarFangrui Song <i@maskray.me>
parent 6e6da74c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment