diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2014-11-28 11:18:48 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2014-11-28 11:36:52 -0500 |
commit | d7fc3181f73ab3d5549b396198645558127e0584 (patch) | |
tree | b802e7103873a444a6d8328de53faf92c3a293e0 /gdb/testsuite/gdb.dwarf2 | |
parent | 57df9adf2d437e3c7f17a77c3e0f3c0d8e56aa40 (diff) | |
download | gdb-d7fc3181f73ab3d5549b396198645558127e0584.zip gdb-d7fc3181f73ab3d5549b396198645558127e0584.tar.gz gdb-d7fc3181f73ab3d5549b396198645558127e0584.tar.bz2 |
Fix prints in tests for Python 3
Python 3's print requires to use parentheses, so this patch adds them
where they were missing.
gdb/testsuite/ChangeLog:
* gdb.ada/py_range.exp: Add parentheses to calls to print.
* gdb.dwarf2/symtab-producer.exp: Same.
* gdb.gdb/python-interrupts.exp: Same.
* gdb.gdb/python-selftest.exp: Same.
* gdb.python/py-linetable.exp: Same.
* gdb.python/py-type.exp: Same.
* gdb.python/py-value-cc.exp: Same.
* gdb.python/py-value.exp: Same.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/symtab-producer.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/symtab-producer.exp b/gdb/testsuite/gdb.dwarf2/symtab-producer.exp index 57cf04c..58299f2 100644 --- a/gdb/testsuite/gdb.dwarf2/symtab-producer.exp +++ b/gdb/testsuite/gdb.dwarf2/symtab-producer.exp @@ -95,9 +95,9 @@ if { [skip_python_tests] } { continue } gdb_py_test_silent_cmd "python with_producer = gdb.lookup_global_symbol(\"with_producer\")" \ "get with_producer symbol" 0 -gdb_test "python print with_producer.symtab.producer" "ACME Compiler Company" +gdb_test "python print(with_producer.symtab.producer)" "ACME Compiler Company" gdb_py_test_silent_cmd "python without_producer = gdb.lookup_global_symbol(\"without_producer\")" \ "get without_producer symbol" 0 -gdb_test "python print without_producer.symtab.producer" "None" +gdb_test "python print(without_producer.symtab.producer)" "None" |