Skip to content

Commit

Permalink
Check if setup of qemu/remote worked before continuing setting up the…
Browse files Browse the repository at this point in the history
… env
  • Loading branch information
ValekoZ committed Jan 12, 2024
1 parent eac7308 commit b694a81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -11092,10 +11092,12 @@ def setup(self) -> bool:
# setup remote adequately depending on remote or qemu mode
if self.in_qemu_user():
dbg(f"Setting up as qemu session, target={self.__qemu}")
self.__setup_qemu()
if not self.__setup_qemu():
return False
else:
dbg(f"Setting up as remote session")
self.__setup_remote()
if not self.__setup_remote():
return False

# refresh gef to consider the binary
reset_all_caches()
Expand Down

0 comments on commit b694a81

Please sign in to comment.