pounder_test/openocd.gdb

27 lines
600 B
Plaintext
Raw Normal View History

2019-03-18 19:56:26 +08:00
target remote :3333
set print asm-demangle on
monitor arm semihosting enable
# if using ITM with itmdump
# monitor tpiu config internal itm.fifo uart off 168000000
# or uart
# monitor tpiu config external uart off 168000000 2000000
# monitor itm port 0 on
2019-03-19 23:27:22 +08:00
# detect unhandled exceptions, hard faults and panics
break DefaultHandler
break HardFault
break rust_begin_unwind
2019-03-18 19:56:26 +08:00
load
# tbreak cortex_m_rt::reset_handler
2019-03-19 00:57:00 +08:00
# monitor reset halt
2019-03-18 19:56:26 +08:00
# cycle counter delta tool, place two bkpts around the section
define qq
print *0xe0001004-$t0
set var $t0=*0xe0001004
continue
end
set var $t0=0xe0001004
continue