Skip to content

Commit 3bb09a2

Browse files
Bartek CichockiSP2FET
Bartek Cichocki
authored andcommitted
[EGD-3601] Latest CLion debug fix
1 parent f09971d commit 3bb09a2

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.gdbinit-1051-clion

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
# .gdbinit-1051 file adapted for CLion, because it performs `gdb target` and `gdb load` on it own.
22
# https://stackoverflow.com/questions/39810593/gdb-monitor-commands-in-clion
33
# random FreeRTOS stuff triggers this
4-
handle SIGUSR1 noprint nostop
4+
handle SIGUSR1 noprint nostop
55
# setting breakpoints triggers this signal
66
# handle SIGTRAP print nostop
77

88
define hookpost-load
99
monitor halt
10+
monitor memU32 0x401BC000 = 128;
1011
eval "monitor exec SetRTTAddr %p", &_SEGGER_RTT
11-
break main
12+
b main
13+
b HardFault_Handler
14+
b MemManage_Handler
15+
b BusFault_Handler
16+
b UsageFault_Handler
17+
b ResetISR
1218
end
1319

1420
define target hookpost-remote
15-
monitor reset 0
21+
mon reset
1622
monitor halt
1723
echo Hook post- remote called!!\n
1824
end
19-

.idea/runConfigurations/JLink_server.xml

+4-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)