From 8dda052131bcbe3198d0b90a6a8b949b8cf34205 Mon Sep 17 00:00:00 2001 From: echo <2220386943@qq.com> Date: Mon, 22 Apr 2024 10:32:30 +0800 Subject: [PATCH] fix some addr can't find line --- symbol/symbol_resolve.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/symbol/symbol_resolve.cpp b/symbol/symbol_resolve.cpp index 9cb0089..fd6dc66 100644 --- a/symbol/symbol_resolve.cpp +++ b/symbol/symbol_resolve.cpp @@ -463,7 +463,9 @@ void MyDwarf::FindLine(unsigned long addr, struct DwarfEntry &entry) for (auto &range : rangeList) { if (range.IsInLineTable(addr)) { range.FindLine(addr, entry); - return; + if (entry.find) { + return; + } } } } @@ -488,7 +490,9 @@ void MyDwarf::LoadDwarf(unsigned long addr, DwarfEntry& entry) loadNum++; if (range.IsInLineTable(addr)) { range.FindLine(addr, entry); - return; + if (entry.find) { + return; + } } } hasLoad = true; -- Gitee