mirror of https://github.com/pwndbg/pwndbg.git
Fix emulate command crash (#459)
After we added `repeat` functionality for some commands, the emulate stopped to work:
```
pwndbg> emulate
Traceback (most recent call last):
File "/home/dc/installed/pwndbg/pwndbg/commands/__init__.py", line 109, in __call__
return self.function(*args, **kwargs)
File "/home/dc/installed/pwndbg/pwndbg/commands/__init__.py", line 200, in _OnlyWhenRunning
return function(*a, **kw)
File "/home/dc/installed/pwndbg/pwndbg/commands/nearpc.py", line 180, in emulate
nearpc.repeat = emulate.repeat
AttributeError: 'bool' object has no attribute 'repeat'
```
This is due to the fact the command has the same name as argument which is a bool.
pull/462/head
parent
c224cf48a9
commit
f4a9cb9463
Loading…
Reference in new issue