source: general/prog/gdb.xml@ a3394a71

systemd-13485
Last change on this file since a3394a71 was a3394a71, checked in by Douglas R. Reno <renodr@…>, 9 years ago

First round of tags for the day.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16502 af4574ff-66df-0310-9fd7-8a98e5e911e0

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