cc: Prefer external debuginfo files to the binary itself (#1111)
On some distributions, the debuglink section in the binary will not have a .debug file extension. As a result, we will try to look for the debuginfo file in the binary itself, immediately find it, and abort looking for any other alternatives. This is not good, because the binary might contain stripped or partial symbols, which precludes certain tools from realizing their full potential. Fix by checking that the debuginfo file we're trying to use is not the same as the binary file. In any case, if external debuginfo can't be found, we will fall back to the symbols in the original binary file, if present, so this should not regress any existing scenario.
Showing
Please register or sign in to comment