Fix handling of absolute paths in `LLDBProcess._resolve_fullpath` (#2591)

pull/2593/head
Matt. 1 year ago committed by GitHub
parent 1df92cb766
commit 7658e2b707
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1383,7 +1383,11 @@ class LLDBProcess(pwndbg.dbg_mod.Process):
if len(link) == 0:
return spec.fullpath
return os.path.normpath(f"{spec.dirname}/{link}")
# Get the absolute path if it is not already absolute.
if not os.path.isabs(link):
link = os.path.normpath(f"{spec.dirname}/{link}")
return link
@override
def module_section_locations(self) -> List[Tuple[int, int, str, str]]:

Loading…
Cancel
Save