Emacs/docs/latest/emacs/GDB-Graphical-Interface

From Get docs

Previous: GUD Customization, Up: Debuggers   [Contents][Index]


27.6.5 GDB Graphical Interface

The command M-x gdb starts GDB in an IDE-like interface, with specialized buffers for controlling breakpoints, stack frames, and other aspects of the debugger state. It also provides additional ways to control the debugging session with the mouse, such as clicking in the fringe of a source buffer to set a breakpoint there.

To run GDB using just the GUD interaction buffer interface, without these additional features, use M-x gud-gdb (see Starting GUD). You must use this if you want to debug multiple programs within one Emacs session, as that is currently unsupported by M-x gdb.

Internally, M-x gdb informs GDB that its screen size is unlimited; for correct operation, you must not change GDB’s screen height and width values during the debugging session.

GDB User Interface Layout    Control the number of displayed buffers.
Source Buffers    Use the mouse in the fringe/margin to control your program.
Breakpoints Buffer    A breakpoint control panel.
Threads Buffer    Displays your threads.
Stack Buffer    Select a frame from the call stack.
Other GDB Buffers    Other buffers for controlling the GDB state.
Watch Expressions    Monitor variable values in the speedbar.
Multithreaded Debugging    Debugging programs with several threads.