source: general/prog/gdb.xml@ 952c2494

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 952c2494 was 952c2494, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Update to git-2.16.2.
Update to gdb-8.1.
Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19791 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY gdb-download-http "&gnu-http;/gdb/gdb-&gdb-version;.tar.xz">
8 <!ENTITY gdb-download-ftp "&gnu-ftp;/gdb/gdb-&gdb-version;.tar.xz">
9 <!ENTITY gdb-md5sum "f46487561f9a16916a8102316f7fd105">
10 <!ENTITY gdb-size "19 MB">
11 <!ENTITY gdb-buildsize "494 MB (add 19 MB for tests, add 677 MB for docs)">
12 <!ENTITY gdb-time "4.1 SBU (add 17 SBU for tests, add 0.7 for docs)">
13]>
14
15<sect1 id="gdb" xreflabel="GDB-&gdb-version;">
16 <?dbhtml filename="gdb.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>GDB-&gdb-version;</title>
24
25 <indexterm zone="gdb">
26 <primary sortas="a-GDB">GDB</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to GDB</title>
31
32 <para>
33 <application>GDB</application>, the GNU Project debugger, allows you
34 to see what is going on <quote>inside</quote> another program while it
35 executes -- or what another program was doing at the moment it crashed.
36 Note that <application>GDB</application> is most effective when tracing
37 programs and libraries that were built with debugging symbols and not
38 stripped.
39 </para>
40
41 &lfs82_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&gdb-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&gdb-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &gdb-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &gdb-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &gdb-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &gdb-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">GDB Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional">
81 <xref linkend="dejagnu"/> (for tests),
82 <xref linkend="doxygen"/>,
83 <xref linkend="gcc"/> (gfortran, for some tests),
84 <xref linkend="guile"/> (currently broken),
85 <xref linkend="python2"/>,
86 <xref linkend="rust"/> (for some tests),
87 <xref linkend="valgrind"/>, and
88 <ulink url="https://sourceware.org/systemtap/">SystemTap</ulink>
89 (run-time dependency, also used in a few tests)
90 </para>
91
92 <para condition="html" role="usernotes">User Notes:
93 <ulink url="&blfs-wiki;/gdb"/>
94 </para>
95 </sect2>
96
97 <sect2 role="installation">
98 <title>Installation of GDB</title>
99
100 <para>
101 Install <application>GDB</application> by running the following
102 commands:
103 </para>
104
105<screen><userinput>./configure --prefix=/usr --with-system-readline --without-guile &amp;&amp;
106make</userinput></screen>
107
108 <para>
109 Optionally, to build the API documentation using
110 <xref linkend="doxygen"/>, run:
111 </para>
112
113<screen><userinput>make -C gdb/doc doxy</userinput></screen>
114
115 <para>
116 To test the results, issue:
117 </para>
118
119<screen><userinput>pushd gdb/testsuite &amp;&amp;
120make site.exp &amp;&amp;
121echo "set gdb_test_timeout 120" &gt;&gt; site.exp &amp;&amp;
122runtest TRANSCRIPT=y
123popd</userinput></screen>
124
125 <para>
126 See <emphasis>gdb/testsuite/README</emphasis> and <ulink
127 url="https://sourceware.org/gdb/wiki/TestingGDB">TestingGDB</ulink>.
128 There are many problems with the test suite:
129 </para>
130
131 <itemizedlist>
132 <listitem>
133 <para>
134 Clean directories are needed if re-running the tests. For that
135 reason, it is recommended to make a copy of the compiled source code
136 directory before the tests in case you need to run the tests again.
137 </para>
138 </listitem>
139
140 <listitem>
141 <para>
142 Results depend on installed compilers.
143 </para>
144 </listitem>
145
146<!-- They worked fine for me. [renodr] 7.11.1 -->
147
148<!--
149 <listitem>
150 <para>
151 If run remotely over an ssh connection, the tests will hang
152 and require a hard (power cycle) reset of the system.
153 </para>
154 </listitem>
155-->
156
157 <listitem>
158 <para>
159 There are a large number of timeouts (there is a variable
160 that can be set to increase time for timeout, but
161 changing it will result in a different number of tests being
162 run).
163 </para>
164 </listitem>
165
166 <listitem>
167 <para>
168 There are failures associated with system readline 6.x.
169 </para>
170 </listitem>
171
172 <listitem>
173 <para>
174 A few tests assume that the header file
175 <filename>&lt;sys/sdt.h&gt;</filename>, part of <ulink
176 url="https://sourceware.org/systemtap/">SystemTap</ulink>, is
177 present.
178 </para>
179 </listitem>
180
181 <listitem>
182 <para>
183 Approximately 2-3% of the tests fail (out of over 48900 tests).
184 </para>
185 </listitem>
186
187 </itemizedlist>
188
189 <para>
190 Now, as the <systemitem class="username">root</systemitem> user:
191 </para>
192
193<screen role="root"><userinput>make -C gdb install</userinput></screen>
194
195 <para>
196 If you have built the API documentation, it is now in gdb/doc/doxy.
197 You can install it (as the <systemitem class="username">root</systemitem>
198 user):
199 </para>
200
201<screen role="root"><userinput>install -d /usr/share/doc/gdb-&gdb-version; &amp;&amp;
202rm -rf gdb/doc/doxy/xml &amp;&amp;
203cp -Rv gdb/doc/doxy /usr/share/doc/gdb-&gdb-version;</userinput></screen>
204
205 </sect2>
206
207 <sect2 role="commands">
208 <title>Command Explanations</title>
209
210 <para>
211 <parameter>--without-guile</parameter>: This switch disables support
212 for <application>Guile</application> since version 2.2 changed the way
213 that C ports were handled.
214 </para>
215
216 <para>
217 <parameter>--with-system-readline</parameter>: This switch forces
218 <application>GDB</application> to use the copy of
219 <application>Readline</application> installed in LFS.
220 </para>
221
222 </sect2>
223
224 <sect2 role="content">
225 <title>Contents</title>
226
227 <segmentedlist>
228 <segtitle>Installed Programs</segtitle>
229 <segtitle>Installed Library</segtitle>
230 <segtitle>Installed Directories</segtitle>
231
232 <seglistitem>
233 <seg>
234 gcore, gdb and gdbserver
235 </seg>
236 <seg>
237 libinproctrace.so
238 </seg>
239 <seg>
240 /usr/{include,share}/gdb and /usr/share/doc/gdb-&gdb-version;
241 </seg>
242 </seglistitem>
243 </segmentedlist>
244
245 <variablelist>
246 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
247 <?dbfo list-presentation="list"?>
248 <?dbhtml list-presentation="table"?>
249
250 <varlistentry id="gcore">
251 <term><command>gcore</command></term>
252 <listitem>
253 <para>
254 generates a core dump of a running program.
255 </para>
256 <indexterm zone="gdb gcore">
257 <primary sortas="b-gcore">gcore</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="gdb-prog">
263 <term><command>gdb</command></term>
264 <listitem>
265 <para>
266 is the GNU Debugger.
267 </para>
268 <indexterm zone="gdb gdb-prog">
269 <primary sortas="b-gdb-prog">gdb-prog</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="gdbserver">
275 <term><command>gdbserver</command></term>
276 <listitem>
277 <para>
278 is a remote server for the GNU debugger (it allows programs
279 to be debugged from a different machine).
280 </para>
281 <indexterm zone="gdb gdbserver">
282 <primary sortas="b-gdbserver">gdbserver</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="libinproctrace">
288 <term><filename class="libraryfile">libinproctrace.so</filename></term>
289 <listitem>
290 <para>
291 contains functions for the in-process tracing agent. The agent
292 allows for installing fast tracepoints, listing static tracepoint
293 markers, probing static tracepoints markers, and starting trace
294 monitoring.
295 </para>
296 <indexterm zone="gdb libinproctrace">
297 <primary sortas="c-libinproctrace">libinproctrace.so</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 </variablelist>
303
304 </sect2>
305
306</sect1>
Note: See TracBrowser for help on using the repository browser.