^Z^Zpre-prompt ^Z^Zprompt ^Z^Zpost-prompt

The input types are:

 

prompt

When GDB is prompting for a command (the main GDB

 

prompt).

commands

When GDB prompts for a set of commands, like in the

 

commands command. The annotations are repeated for

 

each command which is input.

overload-choice

When GDB wants the user to select between various

 

overloaded functions.

query

When GDB wants the user to confirm a potentially

 

dangerous operation.

prompt-for-continue

When GDB is asking the user to press return to continue.

 

Note: Don't expect this to work well; instead use set

 

height 0 to disable prompting. This is because the

 

counting of lines is buggy in the presence of annotations.

20.7 Errors

^Z^Zquit

This annotation occurs right before GDB responds to an interrupt.

^Z^Zerror

This annotation occurs right before GDB responds to an error.

Quit and error annotations indicate that any annotations which GDB was in the middle of may end abruptly. For example, if a value-history-beginannotation is followed by a error, one cannot expect to receive the matching value-history-end. One cannot expect not to receive it either; however, an error annotation does not necessarily mean that GDB is immediately returning all the way to the top level.

A quit or error annotation may be preceded by:

^Z^Zerror-begin

Any output between that and the quit or error annotation is the error message.

Warning messages are not yet annotated.

20.8 Information on breakpoints

The output from the info breakpoints command is annotated as follows:

^Z^Zbreakpoints-headers header-entry^Z^Zbreakpoints-table

302 GDB Annotations