Skip to content

Commit

Permalink
Unhide mode attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazfather committed Feb 22, 2024
1 parent e5a996a commit 8d9e07e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -11145,11 +11145,11 @@ def __init__(self, host: str, port: int, pid: int =-1, qemu: Optional[pathlib.Pa
self.__qemu = qemu

if self.__qemu is not None:
self.__mode = GefRemoteSessionManager.RemoteMode.QEMU
self._mode = GefRemoteSessionManager.RemoteMode.QEMU
elif os.environ.get("GDB_UNDER_RR", None) == "1":
self.__mode = GefRemoteSessionManager.RemoteMode.RR
self._mode = GefRemoteSessionManager.RemoteMode.RR
else:
self.__mode = GefRemoteSessionManager.RemoteMode.GDBSERVER
self._mode = GefRemoteSessionManager.RemoteMode.GDBSERVER

def close(self) -> None:
self.__local_root_fd.cleanup()
Expand Down Expand Up @@ -11201,7 +11201,7 @@ def maps(self) -> pathlib.Path:

@property
def mode(self) -> RemoteMode:
return self.__mode
return self._mode

def sync(self, src: str, dst: Optional[str] = None) -> bool:
"""Copy the `src` into the temporary chroot. If `dst` is provided, that path will be
Expand Down

0 comments on commit 8d9e07e

Please sign in to comment.