Next: GNU Free Documentation License, Previous: Displaying Source, Up: GDB Annotations [Contents]

## 14 Multi-threaded Applications

The following annotations report thread related changes of state.

`^Z^Znew-thread`

  This annotation is issued once for each thread that is created apart from the main thread, which is not reported.

`^Z^Zthread-changed`

  The selected thread has changed. This may occur at the request of the user with the `thread` command, or as a result of execution, e.g., another thread hits a breakpoint.

`^Z^Zthread-exited,id="id",group-id="gid"`

  This annotation is issued once for each thread that exits. The id field contains the global GDB identifier of the thread. The gid field identifies the thread group this thread belongs to.