Bug 30564 - deduplicate debugedit -l sources output
Summary: deduplicate debugedit -l sources output
Status: NEW
Alias: None
Product: debugedit
Classification: Unclassified
Component: debugedit (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-19 11:47 UTC by Mark Wielaard
Modified: 2024-03-15 09:17 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2023-06-19 11:47:47 UTC
https://inbox.sourceware.org/debugedit/4fd77ae2cbc3fdc194bcd0fc37c0c2f92efb66e6.camel@klomp.org/T/#u
https://sourceware.org/cgit/debugedit/commit/?id=41fc1335b8b364c95a8ee2ed2956bbdfe7957853

find-debuginfo deduplicates the debugedit -l sources output (and must for multiple debugedit invocations on different object files).

But this could be a little bit more efficient if debugedit itself deduplicated the sources list itself.

A quick check shows that the number of files output contains ~90% duplicates.
On elfutils eu-readelf debugedit -n -l sources produces 2370 files of which on 246 are unique files.