32 lines
585 B
Plaintext
32 lines
585 B
Plaintext
|
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
|
||
|
|
||
|
# break at line 130 to auto quit
|
||
|
break examples/fpga_config.rs:130
|
||
|
|
||
|
# print using semihosting, slow af
|
||
|
monitor arm semihosting enable
|
||
|
|
||
|
# flash the program to bank 0
|
||
|
load
|
||
|
|
||
|
# flash the bitstream to bank 1
|
||
|
mon flash write_bank 1 build/top.bin 0
|
||
|
|
||
|
# just run immediately
|
||
|
continue
|
||
|
|
||
|
# auto quit when hanged
|
||
|
detach
|
||
|
quit
|