mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
Fix test for Python 3
gdb/testsuite/ChangeLog: * gdb.python/py-lazy-string.exp: Add missing parentheses to print.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2015-07-07 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
|
* gdb.python/py-lazy-string.exp: Add missing parentheses to
|
||||||
|
print.
|
||||||
|
|
||||||
2015-07-07 Yao Qi <yao.qi@linaro.org>
|
2015-07-07 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
* gdb.arch/thumb-singlestep.exp: Do one more single step.
|
* gdb.arch/thumb-singlestep.exp: Do one more single step.
|
||||||
|
@ -36,7 +36,7 @@ gdb_continue_to_breakpoint "break here"
|
|||||||
|
|
||||||
gdb_test_no_output "python null = gdb.parse_and_eval(\"null\")"
|
gdb_test_no_output "python null = gdb.parse_and_eval(\"null\")"
|
||||||
|
|
||||||
gdb_test "python print null.lazy_string(length=0).value()" \
|
gdb_test "python print(null.lazy_string(length=0).value())" \
|
||||||
"gdb.MemoryError: Cannot create a value from NULL.*Error while executing Python code."
|
"gdb.MemoryError: Cannot create a value from NULL.*Error while executing Python code."
|
||||||
gdb_test "python print null.lazy_string(length=3).value()" \
|
gdb_test "python print(null.lazy_string(length=3).value())" \
|
||||||
"gdb.MemoryError: Cannot create a lazy string with address 0x0, and a non-zero length.*Error while executing Python code."
|
"gdb.MemoryError: Cannot create a lazy string with address 0x0, and a non-zero length.*Error while executing Python code."
|
||||||
|
Reference in New Issue
Block a user