Doesn't/Shouldn't it also look at the CUs name and comp_dir?
Oh yeah, the CU DW_AT_name is what says that.
So never mind what I said.
BTW. Where is the code that does the splitting/copying hosted?
It's part of rpm (
git://rpm.org/rpm.git), in tools/debugedit.c
(this is installed as /usr/lib/rpm/debugedit and that's used
by /usr/lib/rpm/find-debuginfo.sh).
Thanks,
Roland