7.4. Using dbx

The symbolic debugger, dbx, is the most commonly used debugger on UNIX operating systems, including AIX. The command provides many useful functions to debug application problems, including:

  • Examines object and core files

  • Provides a controlled environment for running a program

  • Sets break points

  • Traces program flow

  • Supervises symbolic variables

Although the usage of dbx is well explained in Chapter 3, “Debugging Programs”, in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs, we describe the basic use of dbx and show useful customization examples.

Note

dbx does not support lightweight core file.

7.4.1. Starting a dbx session

If an application aborted and generated a core file, run dbx as follows:

 dbx ...

Get Developing and Porting C and C++ Applications on AIX 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.