mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-23 07:29:42 +00:00
fix symboling of elf in hap
Signed-off-by: yuyanqinghw <yuyanqing539@huawei.com>
This commit is contained in:
parent
9b2c44bbec
commit
149b67f04e
@ -180,7 +180,6 @@ public:
|
||||
bool LoadSymbols(std::shared_ptr<DfxMap> map, const std::string &symbolFilePath) override
|
||||
{
|
||||
symbolsLoaded_ = true;
|
||||
HLOGD("map ptr:%p, map name:%s", map.get(), map->name.c_str());
|
||||
std::string findPath = FindSymbolFile(symbolsFileSearchPaths_, symbolFilePath);
|
||||
if (findPath.empty() && elfFile_ == nullptr) { // elf not compressed in hap has been initialized before
|
||||
HLOGW("elf found failed (belong to %s)", filePath_.c_str());
|
||||
@ -216,7 +215,6 @@ public:
|
||||
protected:
|
||||
bool LoadDebugInfo(std::shared_ptr<DfxMap> map, const std::string &symbolFilePath) override
|
||||
{
|
||||
HLOGD("map ptr:%p, map name:%s", map.get(), map->name.c_str());
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
if (debugInfoLoadResult_) {
|
||||
return true; // it must have been loaded
|
||||
|
Loading…
Reference in New Issue
Block a user