source: general/prog/gdb.xml@ 6a06803c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 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 6a06803c was 6c88333, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to mercurial-3.9.2
Update to gdb-7.12
Fix some typos

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

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