Skip to content

Commit

Permalink
Mark _search_for_realpath function private.
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonmessmer committed Jun 12, 2024
1 parent fec8600 commit 5fd1ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def size(self) -> int:
raise AttributeError
return self.page_end - self.page_start

def search_for_realpath(self) -> str:
def _search_for_realpath(self) -> str:
"""This function is a workaround for gdb bug #23764
path might be wrong for remote sessions, so try a simple search for files
Expand All @@ -715,7 +715,7 @@ def search_for_realpath(self) -> str:
@property
def realpath(self) -> str:
# when in a `gef-remote` session, realpath returns the path to the binary on the local disk, not remote
return self.path if gef.session.remote is None else self.search_for_realpath()
return self.path if gef.session.remote is None else self._search_for_realpath()

def __str__(self) -> str:
return (f"Section(start={self.page_start:#x}, end={self.page_end:#x}, "
Expand Down

0 comments on commit 5fd1ab7

Please sign in to comment.