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.
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.
We'd probably want `gdb-add-index -dwarf-5`.
Given https://sourceware.org/bugzilla/show_bug.cgi?id=31363, we certainly do want -dwarf-5 to get .debug_names instead.
Created attachment 917887 [details, diff] 0001-estrip-add-FEATURES-indexdebug-to-create-a-debug-ind.patch Untested so far patch.