added __repr__ to MemoryFlags
This commit is contained in:
parent
c4a28c9d1b
commit
f43c33b0d7
@ -14,6 +14,13 @@ class MemoryFlags:
|
||||
read_only: bool
|
||||
executable: bool
|
||||
|
||||
def __repr__(self):
|
||||
return "{}({},{})".format(
|
||||
self.__class__.__name__,
|
||||
'ro' if self.read_only else 'rw',
|
||||
'x' if self.executable else '-'
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
class MemorySection:
|
||||
|
Loading…
Reference in New Issue
Block a user