-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gdbinit
87 lines (57 loc) · 1.84 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Note, start this within Emacs as
# M-x arm-elf-gdb --annotate=3
set complaints 1
# for the serial connection to the LPC2294 or LPC2106 using an eCos-generated
# gdb-stub and /dev/ttyS0 for the serial port at 38400
# set remotebaud 38400
# target remote /dev/ttyS0
# Set up for JTAG and OpenOCD (see later in file)
#target remote localhost:3333
set output-radix 0x10
set input-radix 0x10
# Following reverts GDB to older behavior allowing access to all
# of target memory. This should not be necessary once I figure out
# how to tell GDB what memory regions the target has.
#set mem inaccessible-by-default off
# All the LPC ARM chips are little endian
set endian little
dir .
set prompt (arm-gdb)
cd ~/riscy/lpc2294
#file ~/riscy/lpc2294/riscy-lpc2106.elf
file ~/riscy/lpc2294/riscy-lpc2103.elf
#cd ~/riscy/examples
#file led1.elf
# Set the program file so we can show MIXED C & assembly.
# Must be done before connecting to the target.
#file test.elf
# Connect to OcdLibRemote on port 1000 of localhost.
#target remote localhost:1000
# connect to the simulator
#target sim
# connect to openOCD running on gdb port 3333
target remote localhost:3333
#monitor arm7_9 force_hw_bkpts enable
# Reset the chip to get to a known state.
#monitor reset
#monitor halt
# LPC Init Values
# Disable IRQ & FIRQ, set SVC mode
#set $cpsr = 0xd3
# Increase the packet size to improve download speed.
# Wish this didn't cause an "Are you sure?" popup.
# At least with small programs, they aren't needed.
#set remote memory-write-packet-size 1024
#set remote memory-write-packet-size fixed
# Load the program executable.
#load riscy.elf
# Load the symbols for the program.
#symbol-file riscy.elf
# Set a breakpoint
b _start
# I think I also want breakpoints set at nxtTab and processI
# but wait before trying that
#b nextTab
#b processI
# Run to the breakpoint.
#c