Next: Breakpoints Buffer, Previous: GDB User Interface Layout, Up: GDB Graphical Interface [Contents][Index]

#### 27.6.5.2 Source Buffers

`mouse-1` (in fringe)

  Set or clear a breakpoint on that line.

`C-mouse-1` (in fringe)

  Enable or disable a breakpoint on that line.

`mouse-3` (in fringe)

  Continue execution to that line.

`C-mouse-3` (in fringe)

  Jump to that line.

On a graphical display, you can click `mouse-1` in the fringe of a source buffer, to set a breakpoint on that line (see Fringes). A red dot appears in the fringe, where you clicked. If a breakpoint already exists there, the click removes it. A `C-mouse-1` click enables or disables an existing breakpoint; a breakpoint that is disabled, but not unset, is indicated by a gray dot.

On a text terminal, or when fringes are disabled, enabled breakpoints are indicated with a ‘`B`’ character in the left margin of the window. Disabled breakpoints are indicated with ‘`b`’. (The margin is only displayed if a breakpoint is present.)

A solid arrow in the left fringe of a source buffer indicates the line of the innermost frame where the debugged program has stopped. A hollow arrow indicates the current execution line of a higher-level frame. If you drag the arrow in the fringe with `mouse-1`, that causes execution to advance to the line where you release the button. Alternatively, you can click `mouse-3` in the fringe to advance to that line. You can click `C-mouse-3` in the fringe to jump to that line without executing the intermediate lines. This command allows you to go backwards, which can be useful for running through code that has already executed, in order to examine its execution in more detail.

Next: Breakpoints Buffer, Previous: GDB User Interface Layout, Up: GDB Graphical Interface [Contents][Index]