From 2e88a1ea30deecac47d89b03f6d60ca04245c36f Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 9 Apr 2016 08:41:41 -0400 Subject: [PATCH] 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. --- 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 5b4cb586f58..67e58cc9270 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-04-09 Simon Marchi + + * gdb.python/py-mi-events-gdb.py (signal_stop_handler): Add + parentheses to print. + (continue_handler): Likewise. + 2016-04-08 Simon Marchi * 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 0aa4fda79c1..975ff2f3a05 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.30.2