2020-08-07 13:36:00 +08:00
|
|
|
target remote :3333
|
|
|
|
|
|
|
|
# print demangled symbols
|
|
|
|
set print asm-demangle on
|
|
|
|
|
|
|
|
# set backtrace limit to not have infinite backtrace loops
|
|
|
|
set backtrace limit 32
|
|
|
|
|
|
|
|
# detect unhandled exceptions, hard faults and panics
|
|
|
|
break DefaultHandler
|
|
|
|
break HardFault
|
|
|
|
break rust_begin_unwind
|
|
|
|
|
|
|
|
# print using semihosting, slow af
|
2020-09-10 16:22:12 +08:00
|
|
|
# monitor arm semihosting enable
|
|
|
|
monitor tpiu config internal itm.fifo uart off 400000000
|
|
|
|
monitor itm port 0 on
|
2020-08-07 13:36:00 +08:00
|
|
|
|
|
|
|
# flash the program to STM32
|
|
|
|
load
|
|
|
|
|
|
|
|
# run the code immediately
|
|
|
|
continue
|
|
|
|
|
|
|
|
# situational exit gdb
|
|
|
|
# quit
|