aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-05-04 16:02:36 +0100
committerPedro Alves <palves@redhat.com>2017-05-04 16:02:36 +0100
commitd512d31c395e3c45f83778e01b9824efe45cac5f (patch)
treed183ce6d7a757361b52c71ec6e7cb81c2f9c205e /gdb
parent5ed8105e02d0c6648b7faea9f4e941237b932717 (diff)
downloadgdb-d512d31c395e3c45f83778e01b9824efe45cac5f.zip
gdb-d512d31c395e3c45f83778e01b9824efe45cac5f.tar.gz
gdb-d512d31c395e3c45f83778e01b9824efe45cac5f.tar.bz2
Fix gdb.python/py-record-btrace-threads.exp with Python 3
Fix several instances of: ... python print not f1calls File "<string>", line 1 print not f1calls ^ SyntaxError: Missing parentheses in call to 'print' Error while executing Python code. (gdb) FAIL: gdb.python/py-record-btrace-threads.exp: thread=1: checking thread 1: python print not f1calls ... gdb/testsuite/ChangeLog: 2017-05-04 Pedro Alves <palves@redhat.com> * gdb.python/py-record-btrace-threads.exp (check_insn_for_thread): Add parens to print call for Python 3.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.python/py-record-btrace-threads.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f6e221d..b672df3 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-04 Pedro Alves <palves@redhat.com>
+
+ * gdb.python/py-record-btrace-threads.exp (check_insn_for_thread):
+ Add parens to print call for Python 3.
+
2017-05-03 Keith Seitz <keiths@redhat.com>
* gdb.cp/oranking.cc (dummy): New function to grab malloc.
diff --git a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
index 17fb5d0..2be73eb 100644
--- a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
+++ b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
@@ -69,8 +69,8 @@ proc check_insn_for_thread { self other } {
gdb_test_no_output "python f1calls = \{x for x in fch if x.symbol and x.symbol.name == \"func1\"\}"
gdb_test_no_output "python f2calls = \{x for x in fch if x.symbol and x.symbol.name == \"func2\"\}"
- gdb_test "python print not f${self}calls" "False"
- gdb_test "python print not f${other}calls" "True"
+ gdb_test "python print(not f${self}calls)" "False"
+ gdb_test "python print(not f${other}calls)" "True"
}
}