source: general/prog/gdb.xml@ 975f600b

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 975f600b was 3b1995e, checked in by Douglas R. Reno <renodr@…>, 7 years ago

Tag and fix a URL in libidn

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

  • Property mode set to 100644
File size: 8.8 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
[8dfc5c3]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">
[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
[3b1995e]41 &lfs81_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"/>,
[870e9f05]83 <xref linkend="gcc"/> (gfortran, for some tests),
84 <xref linkend="guile"/> (currently broken),
[2029b72]85 <xref linkend="python2"/>,
[870e9f05]86 <xref linkend="rust"/> (for some tests),
[2029b72]87 <xref linkend="valgrind"/>, and
88 <ulink url="https://sourceware.org/systemtap/">SystemTap</ulink>
89 (run-time dependency, also used in a few tests)
[d4c9b7c]90 </para>
91
[4b0ebf70]92 <para condition="html" role="usernotes">User Notes:
[d3970e1]93 <ulink url="&blfs-wiki;/gdb"/>
94 </para>
[4b0ebf70]95 </sect2>
96
97 <sect2 role="installation">
[d3970e1]98 <title>Installation of GDB</title>
[4b0ebf70]99
[d3970e1]100 <para>
101 Install <application>GDB</application> by running the following
102 commands:
103 </para>
[4b0ebf70]104
[df0b698]105<screen><userinput>./configure --prefix=/usr --with-system-readline --without-guile &amp;&amp;
[4b0ebf70]106make</userinput></screen>
107
[46fd248]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
[d3970e1]115 <para>
[03b05e7]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>.
[39e42c88]128 There are many problems with the test suite:
[d3970e1]129 </para>
[39e42c88]130
131 <itemizedlist>
132 <listitem>
133 <para>
[3e42104]134 Clean directories are needed if re-running the tests. For that
[39e42c88]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
[3e42104]146<!-- They worked fine for me. [renodr] 7.11.1 -->
147
148<!--
[39e42c88]149 <listitem>
150 <para>
151 If run remotely over an ssh connection, the tests will hang
[0639bb6]152 and require a hard (power cycle) reset of the system.
[39e42c88]153 </para>
154 </listitem>
[3e42104]155-->
[39e42c88]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
[3e42104]162 run).
[39e42c88]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 About 3% of the tests fail (out of over 35000 tests).
184 </para>
185 </listitem>
186
187 </itemizedlist>
[4b0ebf70]188
[d3970e1]189 <para>
190 Now, as the <systemitem class="username">root</systemitem> user:
191 </para>
[4b0ebf70]192
193<screen role="root"><userinput>make -C gdb install</userinput></screen>
194
[852fc810]195 <para>
[46fd248]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):
[852fc810]199 </para>
200
201<screen role="root"><userinput>install -d /usr/share/doc/gdb-&gdb-version; &amp;&amp;
[03b05e7]202rm -rf gdb/doc/doxy/xml &amp;&amp;
[852fc810]203cp -Rv gdb/doc/doxy /usr/share/doc/gdb-&gdb-version;</userinput></screen>
204
[4b0ebf70]205 </sect2>
[d3970e1]206
[870e9f05]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
[4b0ebf70]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>
[4890200]233 <seg>
[6cd96df]234 gcore, gdb and gdbserver
[4890200]235 </seg>
236 <seg>
237 libinproctrace.so
238 </seg>
239 <seg>
[03b05e7]240 /usr/{include,share}/gdb and /usr/share/doc/gdb-&gdb-version;
[4890200]241 </seg>
[4b0ebf70]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
[a55a187]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
[4b0ebf70]262 <varlistentry id="gdb-prog">
263 <term><command>gdb</command></term>
264 <listitem>
[d3970e1]265 <para>
266 is the GNU Debugger.
267 </para>
[4b0ebf70]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>
[d3970e1]277 <para>
[4890200]278 is a remote server for the GNU debugger (it allows programs
279 to be debugged from a different machine).
[d3970e1]280 </para>
[4b0ebf70]281 <indexterm zone="gdb gdbserver">
282 <primary sortas="b-gdbserver">gdbserver</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="libinproctrace">
[4890200]288 <term><filename class="libraryfile">libinproctrace.so</filename></term>
[4b0ebf70]289 <listitem>
[d3970e1]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>
[4b0ebf70]296 <indexterm zone="gdb libinproctrace">
297 <primary sortas="c-libinproctrace">libinproctrace.so</primary>
298 </indexterm>
299 </listitem>
[d3970e1]300 </varlistentry>
[4b0ebf70]301
302 </variablelist>
303
304 </sect2>
305
306</sect1>
Note: See TracBrowser for help on using the repository browser.