Skip to content

Commit

Permalink
added repr for Gef class
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Nov 8, 2024
1 parent 7973a3f commit 8cc2231
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -11724,6 +11724,12 @@ def __init__(self) -> None:
def __str__(self) -> str:
return f"Gef(binary='{self.binary or 'None'}', arch={self.arch})"

def __repr__(self) -> str:
binary = self.binary
arch = self.arch
session = self.session
return f"Gef({binary=:}, {arch=:}, {session=:})"

def reinitialize_managers(self) -> None:
"""Reinitialize the managers. Avoid calling this function directly, using `pi reset()` is preferred"""
self.memory = GefMemoryManager()
Expand Down

0 comments on commit 8cc2231

Please sign in to comment.