aboutsummaryrefslogtreecommitdiff
path: root/testing/examples/ledtest-imx31pdk/gdbinit-imx31pdk
blob: 8374f5acb342d0ccf027aebd78244e05f58a1607 (plain)
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
echo Script to load ledtest on iMX31PDK.\n

# Note: you need to startup openocd with "-f board/imx31pdk.cfg"
# in order to it initialize RAM memory.

# SETUP GDB :
#
# Common gdb setup for ARM CPUs
set complaints 1
set output-radix 10
set input-radix 10
set prompt (arm-gdb)
set endian little
dir .

# CONNECT TO TARGET :
target remote 127.0.0.1:3333

#  LOAD IMAGE :
#

# Load the program executable called "u-boot"
load test.elf

# Load the symbols for the program.
symbol-file test.elf

# RUN TO MAIN :
#
# Set a breakpoint at main().
#b reset
b main

# Run to the breakpoint.
c