aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2016-04-09 08:41:41 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2016-04-09 08:41:41 -0400
commit2e88a1ea30deecac47d89b03f6d60ca04245c36f (patch)
treee32a077a1e3ac4b9037bed087a58af255fc86392 /gdb/testsuite
parent41065f5e080b6e8521e49cfd5bb3fb0db49aa71d (diff)
downloadgdb-2e88a1ea30deecac47d89b03f6d60ca04245c36f.zip
gdb-2e88a1ea30deecac47d89b03f6d60ca04245c36f.tar.gz
gdb-2e88a1ea30deecac47d89b03f6d60ca04245c36f.tar.bz2
gdb.python/py-mi-events-gdb.py: Add parentheses to print
Required for Python 3 gdb/testsuite/ChangeLog: * gdb.python/py-mi-events-gdb.py (signal_stop_handler): Add parentheses to print. (continue_handler): Likewise.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.python/py-mi-events-gdb.py4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 5b4cb58..67e58cc 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2016-04-09 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * gdb.python/py-mi-events-gdb.py (signal_stop_handler): Add
+ parentheses to print.
+ (continue_handler): Likewise.
+
2016-04-08 Simon Marchi <simon.marchi@ericsson.com>
* gdb.server/solib-list.exp: Remove is_remote check.
diff --git a/gdb/testsuite/gdb.python/py-mi-events-gdb.py b/gdb/testsuite/gdb.python/py-mi-events-gdb.py
index 0aa4fda..975ff2f 100644
--- a/gdb/testsuite/gdb.python/py-mi-events-gdb.py
+++ b/gdb/testsuite/gdb.python/py-mi-events-gdb.py
@@ -24,14 +24,14 @@ def signal_stop_handler (event):
"""Stop event handler"""
assert (isinstance (event, gdb.StopEvent))
print ("stop_handler")
- print gdb.execute("info break", False, True)
+ print (gdb.execute("info break", False, True))
def continue_handler (event):
"""Continue event handler"""
assert (isinstance (event, gdb.ContinueEvent))
print ("continue_handler")
- print gdb.execute("info break", False, True)
+ print (gdb.execute("info break", False, True))
class test_events (gdb.Command):