toolchain/share/doc/gdb/GDB_002fMI.html

115 lines
6.6 KiB
HTML
Raw Normal View History

2024-01-10 05:24:32 +00:00
<html lang="en">
<head>
<title>GDB/MI - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="prev" href="Emacs.html#Emacs" title="Emacs">
<link rel="next" href="Annotations.html#Annotations" title="Annotations">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1988-2019 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Free Software'' and ``Free Software Needs
Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
and with the Back-Cover Texts as in (a) below.
(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
this GNU Manual. Buying copies from GNU Press supports the FSF in
developing GNU and promoting software freedom.''
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="GDB%2fMI"></a>
<a name="GDB_002fMI"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Annotations.html#Annotations">Annotations</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Emacs.html#Emacs">Emacs</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr>
</div>
<h2 class="chapter">27 The <span class="sc">gdb/mi</span> Interface</h2>
<h3 class="unnumberedsec">Function and Purpose</h3>
<p><a name="index-g_t_0040sc_007bgdb_002fmi_007d_002c-its-purpose-2950"></a><span class="sc">gdb/mi</span> is a line based machine oriented text interface to
<span class="sc">gdb</span> and is activated by specifying using the
<samp><span class="option">--interpreter</span></samp> command line option (see <a href="Mode-Options.html#Mode-Options">Mode Options</a>). It
is specifically intended to support the development of systems which
use the debugger as just one small component of a larger system.
<p>This chapter is a specification of the <span class="sc">gdb/mi</span> interface. It is written
in the form of a reference manual.
<p>Note that <span class="sc">gdb/mi</span> is still under construction, so some of the
features described below are incomplete and subject to change
(see <a href="GDB_002fMI-Development-and-Front-Ends.html#GDB_002fMI-Development-and-Front-Ends"><span class="sc">gdb/mi</span> Development and Front Ends</a>).
<h3 class="unnumberedsec">Notation and Terminology</h3>
<p><a name="index-notational-conventions_002c-for-_0040sc_007bgdb_002fmi_007d-2951"></a>This chapter uses the following notation:
<ul>
<li><code>|</code> separates two alternatives.
<li><code>[ </code><var>something</var><code> ]</code> indicates that <var>something</var> is optional:
it may or may not be given.
<li><code>( </code><var>group</var><code> )*</code> means that <var>group</var> inside the parentheses
may repeat zero or more times.
<li><code>( </code><var>group</var><code> )+</code> means that <var>group</var> inside the parentheses
may repeat one or more times.
<li><code>"</code><var>string</var><code>"</code> means a literal <var>string</var>.
</ul>
<ul class="menu">
<li><a accesskey="1" href="GDB_002fMI-General-Design.html#GDB_002fMI-General-Design">GDB/MI General Design</a>
<li><a accesskey="2" href="GDB_002fMI-Command-Syntax.html#GDB_002fMI-Command-Syntax">GDB/MI Command Syntax</a>
<li><a accesskey="3" href="GDB_002fMI-Compatibility-with-CLI.html#GDB_002fMI-Compatibility-with-CLI">GDB/MI Compatibility with CLI</a>
<li><a accesskey="4" href="GDB_002fMI-Development-and-Front-Ends.html#GDB_002fMI-Development-and-Front-Ends">GDB/MI Development and Front Ends</a>
<li><a accesskey="5" href="GDB_002fMI-Output-Records.html#GDB_002fMI-Output-Records">GDB/MI Output Records</a>
<li><a accesskey="6" href="GDB_002fMI-Simple-Examples.html#GDB_002fMI-Simple-Examples">GDB/MI Simple Examples</a>
<li><a accesskey="7" href="GDB_002fMI-Command-Description-Format.html#GDB_002fMI-Command-Description-Format">GDB/MI Command Description Format</a>
<li><a accesskey="8" href="GDB_002fMI-Breakpoint-Commands.html#GDB_002fMI-Breakpoint-Commands">GDB/MI Breakpoint Commands</a>
<li><a accesskey="9" href="GDB_002fMI-Catchpoint-Commands.html#GDB_002fMI-Catchpoint-Commands">GDB/MI Catchpoint Commands</a>
<li><a href="GDB_002fMI-Program-Context.html#GDB_002fMI-Program-Context">GDB/MI Program Context</a>
<li><a href="GDB_002fMI-Thread-Commands.html#GDB_002fMI-Thread-Commands">GDB/MI Thread Commands</a>
<li><a href="GDB_002fMI-Ada-Tasking-Commands.html#GDB_002fMI-Ada-Tasking-Commands">GDB/MI Ada Tasking Commands</a>
<li><a href="GDB_002fMI-Program-Execution.html#GDB_002fMI-Program-Execution">GDB/MI Program Execution</a>
<li><a href="GDB_002fMI-Stack-Manipulation.html#GDB_002fMI-Stack-Manipulation">GDB/MI Stack Manipulation</a>
<li><a href="GDB_002fMI-Variable-Objects.html#GDB_002fMI-Variable-Objects">GDB/MI Variable Objects</a>
<li><a href="GDB_002fMI-Data-Manipulation.html#GDB_002fMI-Data-Manipulation">GDB/MI Data Manipulation</a>
<li><a href="GDB_002fMI-Tracepoint-Commands.html#GDB_002fMI-Tracepoint-Commands">GDB/MI Tracepoint Commands</a>
<li><a href="GDB_002fMI-Symbol-Query.html#GDB_002fMI-Symbol-Query">GDB/MI Symbol Query</a>
<li><a href="GDB_002fMI-File-Commands.html#GDB_002fMI-File-Commands">GDB/MI File Commands</a>
<li><a href="GDB_002fMI-Target-Manipulation.html#GDB_002fMI-Target-Manipulation">GDB/MI Target Manipulation</a>
<li><a href="GDB_002fMI-File-Transfer-Commands.html#GDB_002fMI-File-Transfer-Commands">GDB/MI File Transfer Commands</a>
<li><a href="GDB_002fMI-Ada-Exceptions-Commands.html#GDB_002fMI-Ada-Exceptions-Commands">GDB/MI Ada Exceptions Commands</a>
<li><a href="GDB_002fMI-Support-Commands.html#GDB_002fMI-Support-Commands">GDB/MI Support Commands</a>
<li><a href="GDB_002fMI-Miscellaneous-Commands.html#GDB_002fMI-Miscellaneous-Commands">GDB/MI Miscellaneous Commands</a>
</ul>
<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
</body></html>