mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 15:21:15 +00:00
reccmp: continue looking when source cannot be found
Most often, the reasons is mismatched sources.
This commit is contained in:
parent
11ffd576c5
commit
f3ed31ed60
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user