-
Notifications
You must be signed in to change notification settings - Fork 16
/
.gdbinit
44 lines (37 loc) · 841 Bytes
/
.gdbinit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# By default GDB will require additional user interaction when the debugging
# window is small and the output exceeds the visible area. Disable pagination so
# the command is executed directly.
set pagination off
# Load executable and reset in background.
define lr
load
mon reset
end
# Load executable and continue interactively.
define lc
load
continue
end
# Halt process running in background.
define mh
mon halt
end
# Reset in background.
define mr
mon reset
end
# Reset and continue interactively.
define mc
mon reset halt
continue
end
# Define function to enter bootloader mode with the Adafruit UF2 bootloader.
define bootl_nrf52
set {char} 0x4000051c = 0x57
mon reset
end
# Define function to enter bootloader mode on RP2040.
define bootl_rp2040
mon halt
call ((void (*)(uint32_t, uint32_t)) 0x00002591)(0, 0)
end