source: general/prog/gdb.xml@ 852fc810

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 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 852fc810 was 852fc810, checked in by Pierre Labastie <pieere@…>, 9 years ago

Update to gdb-7.8.2

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

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