source: general/prog/gdb.xml@ 956d023

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 956d023 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
RevLine 
[4b0ebf70]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
[99c3273]7 <!ENTITY gdb-download-http "https://ftp.gnu.org/gnu/gdb/gdb-&gdb-version;.tar.xz">
[d81eda8]8 <!ENTITY gdb-download-ftp "ftp://ftp.gnu.org/gnu/gdb/gdb-&gdb-version;.tar.xz">
[c780991]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)">
[4b0ebf70]13]>
14
[d3970e1]15<sect1 id="gdb" xreflabel="GDB-&gdb-version;">
[4b0ebf70]16 <?dbhtml filename="gdb.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[d3970e1]23 <title>GDB-&gdb-version;</title>
[4b0ebf70]24
25 <indexterm zone="gdb">
[4890200]26 <primary sortas="a-GDB">GDB</primary>
[4b0ebf70]27 </indexterm>
28
29 <sect2 role="package">
[d3970e1]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>
[4b0ebf70]40
[63e8fcf9]41 &lfs80_checked;
[c780991]42 &gcc7_checked;
[4b0ebf70]43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
[4890200]47 <para>
48 Download (HTTP): <ulink url="&gdb-download-http;"/>
49 </para>
[4b0ebf70]50 </listitem>
51 <listitem>
[4890200]52 <para>
53 Download (FTP): <ulink url="&gdb-download-ftp;"/>
54 </para>
[4b0ebf70]55 </listitem>
56 <listitem>
[4890200]57 <para>
58 Download MD5 sum: &gdb-md5sum;
59 </para>
[4b0ebf70]60 </listitem>
61 <listitem>
[4890200]62 <para>
63 Download size: &gdb-size;
64 </para>
[4b0ebf70]65 </listitem>
66 <listitem>
[4890200]67 <para>
68 Estimated disk space required: &gdb-buildsize;
69 </para>
[4b0ebf70]70 </listitem>
71 <listitem>
[4890200]72 <para>
73 Estimated build time: &gdb-time;
74 </para>
[4b0ebf70]75 </listitem>
76 </itemizedlist>
77
[d3970e1]78 <bridgehead renderas="sect3">GDB Dependencies</bridgehead>
[d4c9b7c]79
80 <bridgehead renderas="sect4">Optional</bridgehead>
81 <para role="optional">
[d81eda8]82 <xref linkend="dejagnu"/> (for tests),
[852fc810]83 <xref linkend="doxygen"/>,
[870e9f05]84 <xref linkend="gcc"/> (gfortran, for some tests),
85 <xref linkend="guile"/> (currently broken),
[2029b72]86 <xref linkend="python2"/>,
[870e9f05]87 <xref linkend="rust"/> (for some tests),
[2029b72]88 <xref linkend="valgrind"/>, and
89 <ulink url="https://sourceware.org/systemtap/">SystemTap</ulink>
90 (run-time dependency, also used in a few tests)
[d4c9b7c]91 </para>
92
[4b0ebf70]93 <para condition="html" role="usernotes">User Notes:
[d3970e1]94 <ulink url="&blfs-wiki;/gdb"/>
95 </para>
[4b0ebf70]96 </sect2>
97
98 <sect2 role="installation">
[d3970e1]99 <title>Installation of GDB</title>
[4b0ebf70]100
[d3970e1]101 <para>
102 Install <application>GDB</application> by running the following
103 commands:
104 </para>
[4b0ebf70]105
[df0b698]106<screen><userinput>./configure --prefix=/usr --with-system-readline --without-guile &amp;&amp;
[4b0ebf70]107make</userinput></screen>
108
[46fd248]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
[d3970e1]116 <para>
[03b05e7]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>.
[39e42c88]129 There are many problems with the test suite:
[d3970e1]130 </para>
[39e42c88]131
132 <itemizedlist>
133 <listitem>
134 <para>
[3e42104]135 Clean directories are needed if re-running the tests. For that
[39e42c88]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
[3e42104]147<!-- They worked fine for me. [renodr] 7.11.1 -->
148
149<!--
[39e42c88]150 <listitem>
151 <para>
152 If run remotely over an ssh connection, the tests will hang
[0639bb6]153 and require a hard (power cycle) reset of the system.
[39e42c88]154 </para>
155 </listitem>
[3e42104]156-->
[39e42c88]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
[3e42104]163 run).
[39e42c88]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>
[4b0ebf70]189
[d3970e1]190 <para>
191 Now, as the <systemitem class="username">root</systemitem> user:
192 </para>
[4b0ebf70]193
194<screen role="root"><userinput>make -C gdb install</userinput></screen>
195
[852fc810]196 <para>
[46fd248]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):
[852fc810]200 </para>
201
202<screen role="root"><userinput>install -d /usr/share/doc/gdb-&gdb-version; &amp;&amp;
[03b05e7]203rm -rf gdb/doc/doxy/xml &amp;&amp;
[852fc810]204cp -Rv gdb/doc/doxy /usr/share/doc/gdb-&gdb-version;</userinput></screen>
205
[4b0ebf70]206 </sect2>
[d3970e1]207
[870e9f05]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
[4b0ebf70]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>
[4890200]234 <seg>
[6cd96df]235 gcore, gdb and gdbserver
[4890200]236 </seg>
237 <seg>
238 libinproctrace.so
239 </seg>
240 <seg>
[03b05e7]241 /usr/{include,share}/gdb and /usr/share/doc/gdb-&gdb-version;
[4890200]242 </seg>
[4b0ebf70]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
[a55a187]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
[4b0ebf70]263 <varlistentry id="gdb-prog">
264 <term><command>gdb</command></term>
265 <listitem>
[d3970e1]266 <para>
267 is the GNU Debugger.
268 </para>
[4b0ebf70]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>
[d3970e1]278 <para>
[4890200]279 is a remote server for the GNU debugger (it allows programs
280 to be debugged from a different machine).
[d3970e1]281 </para>
[4b0ebf70]282 <indexterm zone="gdb gdbserver">
283 <primary sortas="b-gdbserver">gdbserver</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="libinproctrace">
[4890200]289 <term><filename class="libraryfile">libinproctrace.so</filename></term>
[4b0ebf70]290 <listitem>
[d3970e1]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>
[4b0ebf70]297 <indexterm zone="gdb libinproctrace">
298 <primary sortas="c-libinproctrace">libinproctrace.so</primary>
299 </indexterm>
300 </listitem>
[d3970e1]301 </varlistentry>
[4b0ebf70]302
303 </variablelist>
304
305 </sect2>
306
307</sect1>
Note: See TracBrowser for help on using the repository browser.