source: rtems/doc/started/gdb.t @ 417fcc73

4.104.114.84.95
Last change on this file since 417fcc73 was 417fcc73, checked in by Joel Sherrill <joel.sherrill@…>, on 04/09/98 at 19:18:04

base version

  • Property mode set to 100644
File size: 3.3 KB
Line 
1@c
2@c  COPYRIGHT (c) 1988-1998.
3@c  On-Line Applications Research Corporation (OAR).
4@c  All rights reserved.
5@c
6@c  $Id$
7@c
8
9@chapter Building the GDB Debugger
10
11GDB is not currently RTEMS aware. The following configurations have been
12successfully used with RTEMS applications.
13
14@section GDB with Sparc Instruction Simulation (SIS)
15
16@subsection Unarchive the gdb distribution
17
18Use the following commands to unarchive the gdb distribution:
19
20@example
21cd tools
22tar xzf ../arc/gdb-980122.tar.gz
23@end example
24
25The directory gdb-980122 is created under the tools directory.
26
27@subsection Make the build directory
28
29Create a build directory for the SIS Debugger
30
31@example
32cd tools
33mkdir build-sis
34@end example
35
36@subsection Configure for the build
37
38Configure the general gdb distribution for Sparc Instruction Simulation
39
40@example
41cd tools/build-sis
42../gdb-980122/configure --target-sparc-erc32-aout \
43--program-prefix=sparc-rtems- \
44--disable-gdbtk \
45--with-targets=all \
46--prefix=<INSTALL_POINT_FOR_SIS>
47@end example
48
49Where:
50
51<INSTALL_POINT_FOR_SIS> is a unique location where the gdb with SIS will be
52created.
53
54@subsection Make the debugger
55
56From tools/build-sis run:
57
58@example
59gmake
60@end example
61
62
63@section GDB with PowerPC instruction Simulation(PSIM)
64
65@subsection Unarchive the gdb distribution
66
67Use the following commands to unarchive the gdb distribution:
68
69@example
70cd tools
71tar xzf ../arc/gdb-980122.tar.gz
72@end example
73
74The directory gdb-980122 is created under the tools directory.
75
76
77@subsection Make the build directory
78
79Create a build directory for the SIS Debugger
80
81@example
82cd tools
83mkdir build-ppc
84@end example
85
86@subsection Configure for the build
87
88Configure the general gdb distribution for PowerPC Instruction Simulation
89
90@example
91cd tools/build-ppc
92../gdb-980122/configure --host=i486-linux \
93      --target=powerpc-unknown-eabi \
94      --program-prefix=powerpc-rtems- \
95      --enable-sim-powerpc \
96      --enable-sim-timebase \
97      --enable-sim-inline \
98      --enable-sim-hardware \
99--prefix=<INSTALL_POINT_FOR_PPC>
100@end example
101
102Where:
103
104<INSTALL_POINT_FOR_PPC> is a unique location where the gdb with PSIM will
105be created.
106
107
108@subsection Make the debugger
109
110From tools/build-ppc run:
111
112@example
113gmake
114@end example
115
116
117@section GDB with Dink32
118
119@subsection Unarchive the gdb distribution
120
121Use the following commands to unarchive the gdb distribution:
122
123@example
124cd tools
125tar xzf ../arc/gdb-980122.tar.gz
126@end example
127
128The directory gdb-980122 is created under the tools directory.
129
130
131@subsection Make the build directory
132
133Create a build directory for the SIS Debugger
134
135@example
136cd tools
137mkdir build-dink32
138@end example
139
140@subsection Replace dink32-rom.c
141
142Obtain a valid copy of dink32-rom.c from RTEMS site.
143
144Replace the copy of dink32-rom.c that came with the gdb-980122
145distribution. It is located in:
146
147@example
148tools/gdb-980122/gdb/dink32-rom.c
149@end example
150
151
152@subsection Configure for the build
153
154Configure the general gdb distribution for Sparc Instruction Simulation
155
156@example
157cd tools/build-dink32
158../gdb-980122/configure --target-powerpc-elf \
159--program-prefix=powerpc-rtems- \
160--prefix=<INSTALL_POINT_FOR_DINK32>
161--with-targets=all \
162@end example
163
164Where:
165
166<INSTALL_POINT_FOR_DINK32> is a unique location where the gdb Dink32 will
167be created.
168
169@subsection Make the debugger
170
171From tools/build-dink32 run:
172
173@example
174gmake
175@end example
176
Note: See TracBrowser for help on using the repository browser.