5.11. Installing GDB

GNU debugger is included in all Linux distributions in the development package. In certain cases, you may want to get a new copy in the source code form and build and install it manually. The compilation and building process is similar to other GNU development tools. By this time you have already built and installed the GNU compiler and the C library. With that experience, you should not find the compilation and installation of GNU debugger difficult.

5.11.1. Downloading and Building

You can download the latest version from ftp://ftp.gnu.org/gnu/gdb directory. The current version at the time of writing this book is 5.1.1. The source code is available in the compressed tar format. The file name is gdb-5.1.1.tar.gz. You have ...

Get Linux Development Platform: Configuring, Using, and Maintaining a Complete Programming Environment, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.