source: general/prog/gdb.xml@ 03b05e7

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 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 nosym 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 03b05e7 was 03b05e7, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • Update to gdb-7.10.

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

  • Property mode set to 100644
File size: 7.2 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 "2a35bac41fa8e10bf04f3a0dd7f7f363">
10 <!ENTITY gdb-size "18 MB">
11 <!ENTITY gdb-buildsize "421 MB (additional 170 MB for tests)">
12 <!ENTITY gdb-time "2.4 SBU (add up to 7.0 SBU for tests)">
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 &lfs77_checked; &gcc5_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="guile"/>,
84 <xref linkend="python2"/>, and
85 <xref linkend="valgrind"/>
86 </para>
87
88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/gdb"/>
90 </para>
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of GDB</title>
95
96 <para>
97 Install <application>GDB</application> by running the following
98 commands:
99 </para>
100
101<screen><userinput>./configure --prefix=/usr --with-system-readline &amp;&amp;
102make</userinput></screen>
103
104 <para>
105 Optionally, to build the API documentation using
106 <xref linkend="doxygen"/>, run:
107 </para>
108
109<screen><userinput>make -C gdb/doc doxy</userinput></screen>
110
111 <para>
112 To test the results, issue:
113 </para>
114
115<screen><userinput>pushd gdb/testsuite &amp;&amp;
116make site.exp &amp;&amp;
117echo "set gdb_test_timeout 120" &gt;&gt; site.exp &amp;&amp;
118runtest TRANSCRIPT=y
119popd</userinput></screen>
120
121 <para>
122 See <emphasis>gdb/testsuite/README</emphasis> and <ulink
123 url="https://sourceware.org/gdb/wiki/TestingGDB">TestingGDB</ulink>.
124 There are many problems with the test suite. First one is that you need
125 to clean some directories, if re-running the tests. For that reason, it
126 is recommended to make a copy of the compiled source code directory,
127 before the tests, in case you need to run the tests again. Results depend
128 on installed compilers, there are differences if run locally or remotely,
129 a large number of timeouts (there is a variable that can be set to
130 increase time for timeout, but changing it, apparently the total number
131 of tests is not conserved), there are failures associated with system
132 readline 6.x, between others. Unexpected failures are less than 0.3%.
133 </para>
134
135 <para>
136 Now, as the <systemitem class="username">root</systemitem> user:
137 </para>
138
139<screen role="root"><userinput>make -C gdb install</userinput></screen>
140
141 <para>
142 If you have built the API documentation, it is now in gdb/doc/doxy.
143 You can install it (as the <systemitem class="username">root</systemitem>
144 user):
145 </para>
146
147<screen role="root"><userinput>install -d /usr/share/doc/gdb-&gdb-version; &amp;&amp;
148rm -rf gdb/doc/doxy/xml &amp;&amp;
149cp -Rv gdb/doc/doxy /usr/share/doc/gdb-&gdb-version;</userinput></screen>
150
151 </sect2>
152
153 <sect2 role="content">
154 <title>Contents</title>
155
156 <segmentedlist>
157 <segtitle>Installed Programs</segtitle>
158 <segtitle>Installed Library</segtitle>
159 <segtitle>Installed Directories</segtitle>
160
161 <seglistitem>
162 <seg>
163 gcore, gdb and gdbserver
164 </seg>
165 <seg>
166 libinproctrace.so
167 </seg>
168 <seg>
169 /usr/{include,share}/gdb and /usr/share/doc/gdb-&gdb-version;
170 </seg>
171 </seglistitem>
172 </segmentedlist>
173
174 <variablelist>
175 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
176 <?dbfo list-presentation="list"?>
177 <?dbhtml list-presentation="table"?>
178
179 <varlistentry id="gcore">
180 <term><command>gcore</command></term>
181 <listitem>
182 <para>
183 generates a core dump of a running program.
184 </para>
185 <indexterm zone="gdb gcore">
186 <primary sortas="b-gcore">gcore</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="gdb-prog">
192 <term><command>gdb</command></term>
193 <listitem>
194 <para>
195 is the GNU Debugger.
196 </para>
197 <indexterm zone="gdb gdb-prog">
198 <primary sortas="b-gdb-prog">gdb-prog</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 <varlistentry id="gdbserver">
204 <term><command>gdbserver</command></term>
205 <listitem>
206 <para>
207 is a remote server for the GNU debugger (it allows programs
208 to be debugged from a different machine).
209 </para>
210 <indexterm zone="gdb gdbserver">
211 <primary sortas="b-gdbserver">gdbserver</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="libinproctrace">
217 <term><filename class="libraryfile">libinproctrace.so</filename></term>
218 <listitem>
219 <para>
220 contains functions for the in-process tracing agent. The agent
221 allows for installing fast tracepoints, listing static tracepoint
222 markers, probing static tracepoints markers, and starting trace
223 monitoring.
224 </para>
225 <indexterm zone="gdb libinproctrace">
226 <primary sortas="c-libinproctrace">libinproctrace.so</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 </variablelist>
232
233 </sect2>
234
235</sect1>
Note: See TracBrowser for help on using the repository browser.