-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgdbproxydebug.gdb
38 lines (30 loc) · 1 KB
/
gdbproxydebug.gdb
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
target remote 172.18.240.1:2000
# print demangled symbols
set print asm-demangle on
# set backtrace limit to not have infinite backtrace loops
set backtrace limit 32
# List $pc- Print assembly instructions of surrounding $pc context.
define lpc
x/10i ($pc - 10)
end
# When the processor stops, show the assembly corresponding to the
# next high-level source line.
# set disassemble-next-line on
# On a given breakpoint, you may wish to run the "disassemble" gdb command to
# get context of your surroundings.
# command <bpnum>
# silent
# disas
# cont
# <newline>
# mspdebug will not erase before loading unless you tell it to.
monitor erase
load
# Force msp430 to reread the reset vector and get back to the entry point.
# If this line is omitted, it's pretty easy to get errors like:
# * fet: FET returned error code 16 (Could not single step device)
# * fet: FET returned error code 17 (Could not run device (to breakpoint))
monitor reset
# start the process but immediately halt the processor
#stepi
continue