aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-10-02 21:08:26 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-10-02 21:08:26 +0100
commite030ce2c79feee6a35665a6580a23dcf937ea46f (patch)
tree4738427719419d54ce0e591909299454c5513acc /gdb
parent57c699398c1a61f1a57574a5ed64654cbadd2a50 (diff)
downloadgdb-e030ce2c79feee6a35665a6580a23dcf937ea46f.zip
gdb-e030ce2c79feee6a35665a6580a23dcf937ea46f.tar.gz
gdb-e030ce2c79feee6a35665a6580a23dcf937ea46f.tar.bz2
gdb/python: reformat file with black
Reformat a Python file with black after this commit: commit 59912fb2d22f8a4bb0862487f12a5cc65b6a013f Date: Tue Sep 19 11:45:36 2023 +0100 gdb: add Python events for program space addition and removal There should be no functional change with this commit.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.python/py-progspace-events.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-progspace-events.py b/gdb/testsuite/gdb.python/py-progspace-events.py
index 3abb421..555221d 100644
--- a/gdb/testsuite/gdb.python/py-progspace-events.py
+++ b/gdb/testsuite/gdb.python/py-progspace-events.py
@@ -19,11 +19,14 @@
import gdb
import gdb.events
+
def new_progspace(event):
print("NewProgspaceEvent: %s" % str(event.progspace))
+
def free_progspace(event):
print("FreeProgspaceEvent: %s" % str(event.progspace))
+
gdb.events.new_progspace.connect(new_progspace)
gdb.events.free_progspace.connect(free_progspace)