Prefer $lib.debug files over $lib files, if available
authorMilian Wolff <milian.wolff@kdab.com>
Tue, 4 Apr 2017 15:38:34 +0000 (17:38 +0200)
committerMilian Wolff <milian.wolff@kdab.com>
Tue, 4 Apr 2017 15:38:34 +0000 (17:38 +0200)
commitc513793b8a433f5fe9a9a3d2897e6a4970484a44
tree6beddf17a208731b4e549f957bc023274abfe634
parent743a628be73d344d9339e0c7e4d0edb1a91b5f2b
Prefer $lib.debug files over $lib files, if available

This is the first step towards supporting split-debug files. This
patch alone will at least improve the situation when you are using
heaptrack on a binary that has split debug information in a file
with the ".debug" suffix. In such cases, we used to be unable to
resolve the file/line information. Now, we properly resolve those
too. Note that Qt 5 QMake uses this split file configuration by
default since some time.
src/interpret/heaptrack_interpret.cpp