diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-03 15:14:04 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-04 13:15:20 +0300 |
commit | 07afefa0ce07c9c76afea13313bd6f28a6e82b24 (patch) | |
tree | 46846f9b151687c346b089eaa09ccb45385dc2e3 | |
parent | d65cf0fcecb5cd8f7290bd2afda635a48f7ec71f (diff) |
Look for application binary recursively
It's not guaranteed that application binaries can be found in the root
of the build directory. Also, they come with arbitrary paths: the place
we copy them to on the device. Our best guess is to just strip the path.
Change-Id: I4085c1dfcbf03312d445a20a717f205e5412c39e
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-rw-r--r-- | app/perfunwind.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/perfunwind.cpp b/app/perfunwind.cpp index 822c8d8..6babd58 100644 --- a/app/perfunwind.cpp +++ b/app/perfunwind.cpp @@ -105,8 +105,8 @@ void PerfUnwind::registerElf(const PerfRecordMmap &mmap) QFileInfo fileInfo(filePath); QFileInfo fullPath; if (mmap.pid() != s_kernelPid) { - fullPath.setFile(appPath + QDir::separator() + filePath); - if (!fullPath.isFile()) { + fullPath.setFile(appPath); + if (!findInExtraPath(fullPath, fileInfo.fileName())) { bool found = false; foreach (const QString &extraPath, extraLibsPath.split(colon)) { fullPath.setFile(extraPath); |