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.
+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.
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"
}
}