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><application>GDB</application>, the GNU Project debugger, allows you
|
---|
33 | to see what is going on `inside' another program while it executes -- or
|
---|
34 | what another program was doing at the moment it crashed.</para>
|
---|
35 |
|
---|
36 | &lfs72_checked;
|
---|
37 |
|
---|
38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
39 | <itemizedlist spacing="compact">
|
---|
40 | <listitem>
|
---|
41 | <para>Download (HTTP): <ulink url="&gdb-download-http;"/></para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>Download (FTP): <ulink url="&gdb-download-ftp;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download MD5 sum: &gdb-md5sum;</para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download size: &gdb-size;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Estimated disk space required: &gdb-buildsize;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated build time: &gdb-time;</para>
|
---|
57 | </listitem>
|
---|
58 | </itemizedlist>
|
---|
59 |
|
---|
60 | <bridgehead renderas="sect3">gdb Dependencies</bridgehead>
|
---|
61 |
|
---|
62 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
63 | <para role="optional">
|
---|
64 | <xref linkend="dejagnu"/> (for tests)
|
---|
65 | </para>
|
---|
66 |
|
---|
67 | <para condition="html" role="usernotes">User Notes:
|
---|
68 | <ulink url="&blfs-wiki;/gdb"/></para>
|
---|
69 |
|
---|
70 | </sect2>
|
---|
71 |
|
---|
72 | <sect2 role="installation">
|
---|
73 | <title>Installation of gdb</title>
|
---|
74 |
|
---|
75 | <para>Install <application>gdb</application> by running the following
|
---|
76 | commands:</para>
|
---|
77 |
|
---|
78 | <screen><userinput>./configure --prefix=/usr &&
|
---|
79 | make</userinput></screen>
|
---|
80 |
|
---|
81 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
82 |
|
---|
83 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
84 |
|
---|
85 | <screen role="root"><userinput>make -C gdb install</userinput></screen>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 | <!--
|
---|
89 | <sect2 role="commands">
|
---|
90 | <title>Command Explanations</title>
|
---|
91 |
|
---|
92 | <para><command>- -disable-werror</command>: Recent versions of
|
---|
93 | <application>gcc</application> generate warnings for a lot more
|
---|
94 | <emphasis>possible</emphasis> errors. Because the <filename>Makefile</filename>
|
---|
95 | uses the <literal>-Werror</literal> switch by default (to treat warnings as
|
---|
96 | errors), this override is needed to allow the package to compile.</para>
|
---|
97 |
|
---|
98 | </sect2>
|
---|
99 | -->
|
---|
100 | <sect2 role="content">
|
---|
101 | <title>Contents</title>
|
---|
102 |
|
---|
103 | <segmentedlist>
|
---|
104 | <segtitle>Installed Programs</segtitle>
|
---|
105 | <segtitle>Installed Library</segtitle>
|
---|
106 | <segtitle>Installed Directories</segtitle>
|
---|
107 |
|
---|
108 | <seglistitem>
|
---|
109 | <seg>gdb, gdbserver, and gdbtui</seg>
|
---|
110 | <seg>libinproctrace.so</seg>
|
---|
111 | <seg>/usr/share/gdb/{python/gdb/command,syscalls}</seg>
|
---|
112 | </seglistitem>
|
---|
113 | </segmentedlist>
|
---|
114 |
|
---|
115 | <variablelist>
|
---|
116 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
117 | <?dbfo list-presentation="list"?>
|
---|
118 | <?dbhtml list-presentation="table"?>
|
---|
119 |
|
---|
120 | <varlistentry id="gdb-prog">
|
---|
121 | <term><command>gdb</command></term>
|
---|
122 | <listitem>
|
---|
123 | <para>is the GNU Debugger.</para>
|
---|
124 | <indexterm zone="gdb gdb-prog">
|
---|
125 | <primary sortas="b-gdb-prog">gdb-prog</primary>
|
---|
126 | </indexterm>
|
---|
127 | </listitem>
|
---|
128 | </varlistentry>
|
---|
129 |
|
---|
130 | <varlistentry id="gdbserver">
|
---|
131 | <term><command>gdbserver</command></term>
|
---|
132 | <listitem>
|
---|
133 | <para>is a remote server for the GNU debugger (it allows programs to be
|
---|
134 | debugged from a different machine).</para>
|
---|
135 | <indexterm zone="gdb gdbserver">
|
---|
136 | <primary sortas="b-gdbserver">gdbserver</primary>
|
---|
137 | </indexterm>
|
---|
138 | </listitem>
|
---|
139 | </varlistentry>
|
---|
140 |
|
---|
141 | <varlistentry id="gdbtui">
|
---|
142 | <term><command>gdbtui</command></term>
|
---|
143 | <listitem>
|
---|
144 | <para>is a text user interface for <application>gdb</application>.</para>
|
---|
145 | <indexterm zone="gdb gdbtui">
|
---|
146 | <primary sortas="b-gdbtui">gdbtui</primary>
|
---|
147 | </indexterm>
|
---|
148 | </listitem>
|
---|
149 | </varlistentry>
|
---|
150 |
|
---|
151 | <!-- commenting, unless anyone feels able to describe this.
|
---|
152 | <varlistentry id="libinproctrace">
|
---|
153 | <term><filename class='libraryfile'>libinproctrace.so</filename></term>
|
---|
154 | <listitem>
|
---|
155 | <para>contains functions that .....</para>
|
---|
156 | <indexterm zone="gdb libinproctrace">
|
---|
157 | <primary sortas="c-libinproctrace">libinproctrace.so</primary>
|
---|
158 | </indexterm>
|
---|
159 | </listitem>
|
---|
160 | </varlistentry> -->
|
---|
161 |
|
---|
162 | </variablelist>
|
---|
163 |
|
---|
164 | </sect2>
|
---|
165 |
|
---|
166 | </sect1>
|
---|