5.1. Introduction to GDB

GNU debugger or more commonly known as GDB is the most commonly used debugger in open source as well as commercial development on UNIX type platforms. It can be used as a native as well as cross debugger. GNU debugger supports many object file formats. The most commonly used formats are as follows:

  • ELF

  • a.out

  • S-record

It is part of almost all of the Linux distributions available these days. In its command line form, it is started using the gdb command. The command provides an interactive text based prompt for the user. The default prompt for the debugger is (gdb). You can use commands available on this command prompt. Most of the commands can be abbreviated as long as they are not confused with any other command. For example, ...

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.