diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/py-block.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-block.exp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.python/py-block.exp b/gdb/testsuite/gdb.python/py-block.exp index 45e4f07..e04cb76 100644 --- a/gdb/testsuite/gdb.python/py-block.exp +++ b/gdb/testsuite/gdb.python/py-block.exp @@ -39,24 +39,24 @@ gdb_continue_to_breakpoint "Block break here." # Test initial innermost block. gdb_py_test_silent_cmd "python frame = gdb.selected_frame()" "Get Frame" 0 gdb_py_test_silent_cmd "python block = frame.block()" "Get block" 0 -gdb_test "python print (block)" "<gdb.Block object at $hex>" "Check block not None" -gdb_test "python print (block.function)" "None" "First anonymous block" -gdb_test "python print (block.start)" "${decimal}" "Check start not None" -gdb_test "python print (block.end)" "${decimal}" "Check end not None" +gdb_test "python print (block)" "<gdb.Block object at $hex>" "check block not None" +gdb_test "python print (block.function)" "None" "first anonymous block" +gdb_test "python print (block.start)" "${decimal}" "check start not None" +gdb_test "python print (block.end)" "${decimal}" "check end not None" # Test global/static blocks gdb_py_test_silent_cmd "python frame = gdb.selected_frame()" "Get Frame" 0 gdb_py_test_silent_cmd "python block = frame.block()" "Get block" 0 -gdb_test "python print (block.is_global)" "False" "Not a global block" -gdb_test "python print (block.is_static)" "False" "Not a static block" +gdb_test "python print (block.is_global)" "False" "not a global block" +gdb_test "python print (block.is_static)" "False" "not a static block" gdb_py_test_silent_cmd "python gblock = block.global_block" "Get block" 1 gdb_py_test_silent_cmd "python sblock = block.static_block" "Get block" 1 -gdb_test "python print (gblock.is_global)" "True" "Is the global block" -gdb_test "python print (sblock.is_static)" "True" "Is the static block" +gdb_test "python print (gblock.is_global)" "True" "is the global block" +gdb_test "python print (sblock.is_static)" "True" "is the static block" # Move up superblock(s) until we reach function block_func. gdb_test_no_output "python block = block.superblock" "Get superblock" -gdb_test "python print (block.function)" "None" "Second anonymous block" +gdb_test "python print (block.function)" "None" "second anonymous block" gdb_test_no_output "python block = block.superblock" "Get superblock 2" gdb_test "python print (block.function)" "block_func" \ "Print superblock 2 function" |