~aleteoryx/muditaos

ref: 0de8e81a0c8d43a4c3e2aafde9343674f9b51a5c muditaos/.gdbinit-1051-clion -rw-r--r-- 627 bytes
0de8e81a — Maciej Gibowicz [BH-2025] Add alarm handling in What`s new application 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# .gdbinit-1051 file adapted for CLion, because it performs `gdb target` and `gdb load` on it own.
# https://stackoverflow.com/questions/39810593/gdb-monitor-commands-in-clion
# random FreeRTOS stuff triggers this
handle SIGUSR1 noprint nostop
# setting breakpoints triggers this signal
# handle SIGTRAP print nostop

define hookpost-load
monitor halt
monitor memU32 0x401BC000 = 128;
eval "monitor exec SetRTTAddr %p", &_SEGGER_RTT
b main
b HardFault_Handler
b MemManage_Handler
b BusFault_Handler
b UsageFault_Handler
b ResetISR
end

define target hookpost-remote
mon reset
monitor halt
echo Hook post- remote called!!\n
end