blob: 2a9ab6b636b9e482d38b0a53b9df39b26d8ef8bb [file] [log] [blame]
<html lang="en">
<head>
<title>Standard Replies - 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="up" href="Remote-Protocol.html#Remote-Protocol" title="Remote Protocol">
<link rel="prev" href="Overview.html#Overview" title="Overview">
<link rel="next" href="Packets.html#Packets" title="Packets">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
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>
<link rel="stylesheet" type="text/css" href="../cs.css">
</head>
<body>
<div class="node">
<a name="Standard-Replies"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Packets.html#Packets">Packets</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Overview.html#Overview">Overview</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Remote-Protocol.html#Remote-Protocol">Remote Protocol</a>
<hr>
</div>
<h3 class="section">D.2 Standard Replies</h3>
<p>The remote protocol specifies a few standard replies. All commands
support these, except as noted in the individual command descriptions.
<dl>
<dt>&lsquo;<samp></samp>&rsquo;<dd><a name="index-empty-response_002c-for-unsupported-packets-2375"></a><a name="index-unsupported-packets_002c-empty-response-for-2376"></a>For any <var>command</var> not supported by the stub, an empty response
(&lsquo;<samp><span class="samp">$#00</span></samp>&rsquo;) should be returned. That way it is possible to extend the
protocol. A newer <span class="sc">gdb</span> can tell if a packet is supported based
on that response (but see also <a href="qSupported.html#qSupported">qSupported</a>).
<br><dt>&lsquo;<samp><span class="samp">E </span><var>xx</var></samp>&rsquo;<dd>An error has occurred; <var>xx</var> is a two-digit hexadecimal error
number. In almost all cases, the protocol does not specify the
meaning of the error numbers; GDB usually ignores the numbers, or
displays them to the user without further interpretation.
<br><dt>&lsquo;<samp><span class="samp">E.</span><var>name</var><span class="samp">[.</span><var>message</var><span class="samp">]</span></samp>&rsquo;<dd>An error has occurred; <var>name</var> is the name of the error. The name
may contain letters, numbers, and &lsquo;<samp><span class="samp">-</span></samp>&rsquo; characters. If present,
<var>message</var> is an error message, encoded using the escaped eight-bit
conventions for binary data described above.
<p>Except as noted, named errors may only be returned to commands
documented to expect them; this ensures that older stubs can interact
with newer versions of <span class="sc">gdb</span>, even when interpretations for
named errors have been added to the protocol.
<p>The protocol uses the following error names:
<dl>
<dt>&lsquo;<samp><span class="samp">fatal</span></samp>&rsquo;<dd>A fatal error has occurred; the stub will be unable to interact
further with <span class="sc">gdb</span>. Fatal errors should always include a
message explaining their cause.
<p>Any command may return this error.
<br><dt>&lsquo;<samp><span class="samp">memtype</span></samp>&rsquo;<dd>The memory addressed is of the wrong type for the given command. For
example, a &lsquo;<samp><span class="samp">vFlashWrite</span></samp>&rsquo; command applied to non-flash memory
elicits an &lsquo;<samp><span class="samp">E.memtype</span></samp>&rsquo; error response.
</dl>
</dl>
</body></html>