zephyr/tests/subsys/debug/gdbstub/test_breakpoints.gdbinit
Dmitrii Golovanov 52442a7c49 tests: gdbstub: Fix incomplete code coverage dump
When the test runs with code coverage, make sure the coverage dump
completes its output under pytest execution before the test debug
session ends in both cases: for Zephyr gdbstub feature and for
Qemu internal GDB stub.

Add few more test operations with breakpoints.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
2023-12-06 17:52:18 +00:00

28 lines
379 B
Plaintext

b test
b main.c:29
c
# break at test()
s
set var a = 2
c
# break at main()
# set the last breakpoint before quit
b k_thread_abort
if ret == 6
printf "GDB:PASSED\n"
# exit main() and continue with code coverage dump, if configured
c
# remove some of the breakpoints to check.
clear test
clear k_thread_abort
info break
quit 0
else
printf "GDB:FAILED\n"
c
quit 1
end