This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH obv] gdb.python/py-mi-events-gdb.py: Add parentheses to print
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Sat, 9 Apr 2016 08:44:55 -0400
- Subject: [PATCH obv] gdb.python/py-mi-events-gdb.py: Add parentheses to print
- Authentication-results: sourceware.org; auth=none
FYI, I pushed this as obvious.
Required for Python 3
gdb/testsuite/ChangeLog:
* gdb.python/py-mi-events-gdb.py (signal_stop_handler): Add
parentheses to print.
(continue_handler): Likewise.
---
gdb/testsuite/ChangeLog | 6 ++++++
gdb/testsuite/gdb.python/py-mi-events-gdb.py | 4 ++--
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):
--
2.8.0