}
delete_breakpoints
- gdb_py_test_multiple "Sub-class a breakpoint" \
+ gdb_test_multiline "Sub-class a breakpoint" \
"python" "" \
"class bp_eval (gdb.Breakpoint):" "" \
" inf_i = 0" "" \
" return False" "" \
"end" ""
- gdb_py_test_multiple "Sub-class a second breakpoint" \
+ gdb_test_multiline "Sub-class a second breakpoint" \
"python" "" \
"class bp_also_eval (gdb.Breakpoint):" "" \
" count = 0" "" \
" return False" "" \
"end" ""
- gdb_py_test_multiple "Sub-class a third breakpoint" \
+ gdb_test_multiline "Sub-class a third breakpoint" \
"python" "" \
"class basic (gdb.Breakpoint):" "" \
" count = 0" "" \
"Set breakpoint" 0
gdb_py_test_silent_cmd "python eval_bp2.condition = \"1==1\"" \
"Set a condition" 0
- gdb_py_test_multiple "Construct an eval function" \
+ gdb_test_multiline "Construct an eval function" \
"python" "" \
"def stop_func ():" "" \
" return True" "" \
gdb_test "python print (check_eval.count)" "1" \
"Test that evaluate function is run when location also has normal bp"
- gdb_py_test_multiple "Sub-class a watchpoint" \
+ gdb_test_multiline "Sub-class a watchpoint" \
"python" "" \
"class wp_eval (gdb.Breakpoint):" "" \
" def stop (self):" "" \
}
delete_breakpoints
- gdb_py_test_multiple "Sub-class and check temporary breakpoint" \
+ gdb_test_multiline "Sub-class and check temporary breakpoint" \
"python" "" \
"class temp_bp (gdb.Breakpoint):" "" \
" count = 0" "" \
clean_restart ${testfile}
- gdb_py_test_multiple "Create event handler" \
+ gdb_test_multiline "Create event handler" \
"python" "" \
"def note_event(arg):" "" \
" global last_bp_event" "" \