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 GNU Debugger |
---|
10 | |
---|
11 | GDB is not currently RTEMS aware. The following configurations have been |
---|
12 | successfully used with RTEMS applications. |
---|
13 | |
---|
14 | @section GDB with Sparc Instruction Simulation (SIS) |
---|
15 | |
---|
16 | @subsection Unarchive the gdb distribution (SIS) |
---|
17 | |
---|
18 | Use the following commands to unarchive the gdb distribution: |
---|
19 | |
---|
20 | @example |
---|
21 | cd tools |
---|
22 | tar xzf ../arc/gdb-980122.tar.gz |
---|
23 | @end example |
---|
24 | |
---|
25 | The directory gdb-980122 is created under the tools directory. |
---|
26 | |
---|
27 | @subsection Make the build directory (SIS) |
---|
28 | |
---|
29 | Create a build directory for the SIS Debugger |
---|
30 | |
---|
31 | @example |
---|
32 | cd tools |
---|
33 | mkdir build-sis |
---|
34 | @end example |
---|
35 | |
---|
36 | @subsection Configure for the build (SIS) |
---|
37 | |
---|
38 | Configure the general gdb distribution for Sparc Instruction Simulation |
---|
39 | |
---|
40 | @example |
---|
41 | cd 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 | |
---|
49 | Where: |
---|
50 | |
---|
51 | <INSTALL_POINT_FOR_SIS> is a unique location where the gdb with SIS will be |
---|
52 | created. |
---|
53 | |
---|
54 | @subsection Make the debugger (SIS) |
---|
55 | |
---|
56 | From tools/build-sis run: |
---|
57 | |
---|
58 | @example |
---|
59 | gmake |
---|
60 | @end example |
---|
61 | |
---|
62 | |
---|
63 | @section GDB with PowerPC Instruction Simulator (PSIM) |
---|
64 | |
---|
65 | @subsection Unarchive the gdb distribution (PSIM) |
---|
66 | |
---|
67 | Use the following commands to unarchive the gdb distribution: |
---|
68 | |
---|
69 | @example |
---|
70 | cd tools |
---|
71 | tar xzf ../arc/gdb-980122.tar.gz |
---|
72 | @end example |
---|
73 | |
---|
74 | The directory gdb-980122 is created under the tools directory. |
---|
75 | |
---|
76 | |
---|
77 | @subsection Make the build directory (PSIM) |
---|
78 | |
---|
79 | Create a build directory for the SIS Debugger |
---|
80 | |
---|
81 | @example |
---|
82 | cd tools |
---|
83 | mkdir build-ppc |
---|
84 | @end example |
---|
85 | |
---|
86 | @subsection Configure for the build |
---|
87 | |
---|
88 | Configure the general gdb distribution for PowerPC Instruction Simulation |
---|
89 | |
---|
90 | @example |
---|
91 | cd 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 | |
---|
102 | Where: |
---|
103 | |
---|
104 | <INSTALL_POINT_FOR_PPC> is a unique location where the gdb with PSIM will |
---|
105 | be created. |
---|
106 | |
---|
107 | |
---|
108 | @subsection Make the debugger (PSIM) |
---|
109 | |
---|
110 | From tools/build-ppc run: |
---|
111 | |
---|
112 | @example |
---|
113 | gmake |
---|
114 | @end example |
---|
115 | |
---|
116 | |
---|
117 | @section GDB with Dink32 |
---|
118 | |
---|
119 | @subsection Unarchive the gdb distribution (DINK32) |
---|
120 | |
---|
121 | Use the following commands to unarchive the gdb distribution: |
---|
122 | |
---|
123 | @example |
---|
124 | cd tools |
---|
125 | tar xzf ../arc/gdb-980122.tar.gz |
---|
126 | @end example |
---|
127 | |
---|
128 | The directory gdb-980122 is created under the tools directory. |
---|
129 | |
---|
130 | |
---|
131 | @subsection Make the build directory (DINK32) |
---|
132 | |
---|
133 | Create a build directory for the DINK32 Debugger |
---|
134 | |
---|
135 | @example |
---|
136 | cd tools |
---|
137 | mkdir build-dink32 |
---|
138 | @end example |
---|
139 | |
---|
140 | @subsection Replace dink32-rom.c |
---|
141 | |
---|
142 | Obtain a valid copy of dink32-rom.c from RTEMS site. |
---|
143 | |
---|
144 | Replace the copy of dink32-rom.c that came with the gdb-980122 |
---|
145 | distribution. It is located in: |
---|
146 | |
---|
147 | @example |
---|
148 | tools/gdb-980122/gdb/dink32-rom.c |
---|
149 | @end example |
---|
150 | |
---|
151 | |
---|
152 | @subsection Configure for the build (DINK32) |
---|
153 | |
---|
154 | Configure the general gdb distribution for Sparc Instruction Simulation |
---|
155 | |
---|
156 | @example |
---|
157 | cd 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 | |
---|
164 | Where: |
---|
165 | |
---|
166 | <INSTALL_POINT_FOR_DINK32> is a unique location where the gdb Dink32 will |
---|
167 | be created. |
---|
168 | |
---|
169 | @subsection Make the debugger (DINK32) |
---|
170 | |
---|
171 | From tools/build-dink32 run: |
---|
172 | |
---|
173 | @example |
---|
174 | gmake |
---|
175 | @end example |
---|
176 | |
---|