source: general/prog/gdb.xml@ d3970e1

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d3970e1 was d3970e1, checked in by Randy McMurchy <randy@…>, 11 years ago

Minor cleanup and tweaks to Programming packages

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

  • Property mode set to 100644
File size: 5.4 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.bz2">
8 <!ENTITY gdb-download-ftp "ftp://ftp.gnu.org/gnu/gdb/gdb-&gdb-version;.tar.bz2">
9 <!ENTITY gdb-md5sum "24a6779a9fe0260667710de1b082ef61">
10 <!ENTITY gdb-size "20 MB">
11 <!ENTITY gdb-buildsize "314 MB (444 MB with checks)">
12 <!ENTITY gdb-time "1.9 SBU (5.9 SBU with 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 &lfs72_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>Download (HTTP): <ulink url="&gdb-download-http;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download (FTP): <ulink url="&gdb-download-ftp;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download MD5 sum: &gdb-md5sum;</para>
53 </listitem>
54 <listitem>
55 <para>Download size: &gdb-size;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated disk space required: &gdb-buildsize;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated build time: &gdb-time;</para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">GDB Dependencies</bridgehead>
66
67 <bridgehead renderas="sect4">Optional</bridgehead>
68 <para role="optional">
69 <xref linkend="dejagnu"/> (for tests)
70 </para>
71
72 <para condition="html" role="usernotes">User Notes:
73 <ulink url="&blfs-wiki;/gdb"/>
74 </para>
75
76 </sect2>
77
78 <sect2 role="installation">
79 <title>Installation of GDB</title>
80
81 <para>
82 Install <application>GDB</application> by running the following
83 commands:
84 </para>
85
86<screen><userinput>./configure --prefix=/usr &amp;&amp;
87make</userinput></screen>
88
89 <para>
90 To test the results, issue: <command>make -k check</command>.
91 </para>
92
93 <para>
94 Now, as the <systemitem class="username">root</systemitem> user:
95 </para>
96
97<screen role="root"><userinput>make -C gdb install</userinput></screen>
98
99 </sect2>
100
101<!--
102 <sect2 role="commands">
103 <title>Command Explanations</title>
104
105 <para><command>- -disable-werror</command>: Recent versions of
106 <application>gcc</application> generate warnings for a lot more
107 <emphasis>possible</emphasis> errors. Because the <filename>Makefile</filename>
108 uses the <literal>-Werror</literal> switch by default (to treat warnings as
109 errors), this override is needed to allow the package to compile.</para>
110
111 </sect2>
112-->
113
114 <sect2 role="content">
115 <title>Contents</title>
116
117 <segmentedlist>
118 <segtitle>Installed Programs</segtitle>
119 <segtitle>Installed Library</segtitle>
120 <segtitle>Installed Directories</segtitle>
121
122 <seglistitem>
123 <seg>gdb and gdbserver</seg>
124 <seg>libinproctrace.so</seg>
125 <seg>/usr/include/gdb, /usr/share/gdb, and
126 /usr/share/doc/gdb-&gdb-version;</seg>
127 </seglistitem>
128 </segmentedlist>
129
130 <variablelist>
131 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
132 <?dbfo list-presentation="list"?>
133 <?dbhtml list-presentation="table"?>
134
135 <varlistentry id="gdb-prog">
136 <term><command>gdb</command></term>
137 <listitem>
138 <para>
139 is the GNU Debugger.
140 </para>
141 <indexterm zone="gdb gdb-prog">
142 <primary sortas="b-gdb-prog">gdb-prog</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="gdbserver">
148 <term><command>gdbserver</command></term>
149 <listitem>
150 <para>
151 is a remote server for the GNU debugger (it allows programs to be
152 debugged from a different machine).
153 </para>
154 <indexterm zone="gdb gdbserver">
155 <primary sortas="b-gdbserver">gdbserver</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="libinproctrace">
161 <term><filename class='libraryfile'>libinproctrace.so</filename></term>
162 <listitem>
163 <para>
164 contains functions for the in-process tracing agent. The agent
165 allows for installing fast tracepoints, listing static tracepoint
166 markers, probing static tracepoints markers, and starting trace
167 monitoring.
168 </para>
169 <indexterm zone="gdb libinproctrace">
170 <primary sortas="c-libinproctrace">libinproctrace.so</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174
175 </variablelist>
176
177 </sect2>
178
179</sect1>
Note: See TracBrowser for help on using the repository browser.