Interact with GDB

The IDE lets you use a subset of the commands that the gdb utility offers.

To learn more about the gdb utility, see its entry in the Utilities Reference and the Using GDB section of the QNX Neutrino Programmer's Guide.

Enable the QNX GDB Console view

The QNX GDB Console view is part of the regular Console perspective. It appears as soon as the data is sent to it.

To switch to the QNX GDB Console view:

  1. In the Debug view, select a debug session.
  2. Click the arrow beside the Display Selected Console button.

  3. Choose the console whose name includes gdb.

The Console view changes to the QNX GDB Console view.

Use the QNX GDB Console view

The QNX GDB Console view lets you bypass the IDE and talk directly to GDB; the IDE is unaware of anything done in the QNX GDB Console view. Items such as breakpoints that you set from the QNX GDB Console view don't appear in the C/C++ editor.

Note: You can't use the Tab key for line completion because the commands are sent to GDB only when you press Enter.

To use the QNX GDB Console view:

In the QNX GDB Console view, enter a command (e.g. nexti to step one instruction):

Figure 1. The Console view: using with GDB.
Note: To enter commands, you must be on the last line of the Console view.