summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2017-05-14 01:55:30 +0200
committerMilian Wolff <milian.wolff@kdab.com>2017-09-06 10:36:49 +0000
commitcd24974ea8da75ad264ba981ed16215fabe70ba7 (patch)
tree1d33445efac48a2f07aba483a14c338633388542 /tests
parent9917e10ade3cb0c4fd3404c41541b43efe97c3fe (diff)
Extend fallback code to find debug link file based on original path
By remembering the path under which a file was originally referenced in the mmap call, we can use this information to find debug link files. I.e. we will now try to find the debug link file in the original binary target folder, which is where this debug link file often resides. This is useful for lazy people like me who don't want to set the application path every time they use perfparser. Change-Id: I8e33f137b186ed857b9b4da1d0618d0ae903d0cd Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/elfmap/tst_elfmap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/elfmap/tst_elfmap.cpp b/tests/auto/elfmap/tst_elfmap.cpp
index de54e82..d56442b 100644
--- a/tests/auto/elfmap/tst_elfmap.cpp
+++ b/tests/auto/elfmap/tst_elfmap.cpp
@@ -27,8 +27,8 @@
namespace {
bool registerElf(PerfElfMap *map, const PerfElfMap::ElfInfo &info)
{
- return map->registerElf(info.addr, info.length, info.pgoff,
- info.localFile, info.originalFileName);
+ return map->registerElf(info.addr, info.length, info.pgoff, info.localFile,
+ info.originalFileName, info.originalPath);
}
}