source: general/prog/gdb.xml@ c780991

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.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 c780991 was c780991, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to gdb-8.0.
Update to pycairo-1.13.3 (python module).

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

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