events.py: remove unused Pause class (#1223)

* events.py: remove unused Pause class

* remove pause

* do not set debug-events flag
pull/1239/head
Disconnect3d 3 years ago committed by GitHub
parent 23caabdb76
commit 59889f1330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,7 +13,6 @@ import gdb
import pwndbg.config
debug = pwndbg.config.Parameter("debug-events", False, "display internal event debugging info")
pause = 0
# There is no GDB way to get a notification when the binary itself
@ -119,16 +118,6 @@ except (NameError, AttributeError):
pass
class Pause:
def __enter__(self, *a, **kw):
global pause
pause += 1
def __exit__(self, *a, **kw):
global pause
pause -= 1
# When performing remote debugging, gdbserver is very noisy about which
# objects are loaded. This greatly slows down the debugging session.
# In order to combat this, we keep track of which objfiles have been loaded
@ -157,9 +146,6 @@ def connect(func, event_handler, name=""):
dispatched.add(handler)
objfile_cache[path] = dispatched
if pause:
return
try:
func()
except Exception as e:

Loading…
Cancel
Save