Debugging with GDB: GDB/MI General Design |
---|
Next: GDB/MI Command Syntax, Up: GDB/MI [Contents][Index]
Interaction of a GDB/MI frontend with GDB involves three parts—commands sent to GDB, responses to those commands and notifications. Each command results in exactly one response, indicating either successful completion of the command, or an error. For the commands that do not resume the target, the response contains the requested information. For the commands that resume the target, the response only indicates whether the target was successfully resumed. Notifications is the mechanism for reporting changes in the state of the target, or in GDB state, that cannot conveniently be associated with a command and reported as part of that command response.
The important examples of notifications are:
There’s no guarantee that whenever an MI command reports an error, GDB or the target are in any specific state, and especially, the state is not reverted to the state before the MI command was processed. Therefore, whenever an MI command results in an error, we recommend that the frontend refreshes all the information shown in the user interface.
• Context management: | ||
• Asynchronous and non-stop modes: | ||
• Thread groups: |
Next: GDB/MI Command Syntax, Up: GDB/MI [Contents][Index]