reccmp: continue looking when source cannot be found

Most often, the reasons is mismatched sources.
This commit is contained in:
Anonymous Maarten 2023-06-30 01:08:53 +02:00
parent 11ffd576c5
commit f3ed31ed60

View File

@ -209,9 +209,12 @@ def get_recompiled_address(self, filename, line):
for fn in self.lines:
# Sometimes a PDB is compiled with a relative path while we always have
# an absolute path. Therefore we must
if os.path.samefile(fn, filename):
filename = fn
break
try:
if os.path.samefile(fn, filename):
filename = fn
break
except FileNotFoundError as e:
continue
if filename in self.lines and line in self.lines[fn]:
addr = self.lines[fn][line]