GDB-7.7

Introduction to GDB

GDB, the GNU Project debugger, allows you to see what is going on “inside” another program while it executes -- or what another program was doing at the moment it crashed. Note that GDB is most effective when tracing programs and libraries that were built with debugging symbols and not stripped.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

GDB Dependencies

Optional

DejaGnu-1.5.1 (for tests), expat-2.1.0 and Python-2.7.6

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gdb

Installation of GDB

Install GDB by running the following commands:

./configure --prefix=/usr --with-system-readline &&
make

To test the results, issue: make -k check.

Now, as the root user:

make -C gdb install

Contents

Installed Programs: gcore, gdb and gdbserver
Installed Library: libinproctrace.so
Installed Directories: /usr/include/gdb and /usr/share/gdb

Short Descriptions

gcore

generates a core dump of a running program.

gdb

is the GNU Debugger.

gdbserver

is a remote server for the GNU debugger (it allows programs to be debugged from a different machine).

libinproctrace.so

contains functions for the in-process tracing agent. The agent allows for installing fast tracepoints, listing static tracepoint markers, probing static tracepoints markers, and starting trace monitoring.

Last updated on 2014-02-23 13:25:47 -0800