blob: 3d8e0d707aea88e8a667834d70201a72d97fcea0 [file] [log] [blame]
<html lang="en">
<head>
<title>Errors - GDB's Obsolete Annotations</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GDB's Obsolete Annotations">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="prev" href="Prompting.html#Prompting" title="Prompting">
<link rel="next" href="Breakpoint-Info.html#Breakpoint-Info" title="Breakpoint Info">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1994-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 no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled ``GNU
Free Documentation License''.-->
<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="Errors"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Breakpoint-Info.html#Breakpoint-Info">Breakpoint Info</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Prompting.html#Prompting">Prompting</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr>
</div>
<h2 class="chapter">9 Errors</h2>
<p><a name="index-annotations-for-errors_002c-warnings-and-interrupts-60"></a>
<a name="index-quit-61"></a>
<pre class="smallexample"> ^Z^Zquit
</pre>
<p>This annotation occurs right before <span class="sc">gdb</span> responds to an interrupt.
<p><a name="index-error-62"></a>
<pre class="smallexample"> ^Z^Zerror
</pre>
<p>This annotation occurs right before <span class="sc">gdb</span> responds to an error.
<p>Quit and error annotations indicate that any annotations which <span class="sc">gdb</span> was
in the middle of may end abruptly. For example, if a
<code>value-history-begin</code> annotation is followed by a <code>error</code>, one
cannot expect to receive the matching <code>value-history-end</code>. One
cannot expect not to receive it either, however; an error annotation
does not necessarily mean that <span class="sc">gdb</span> is immediately returning all the way
to the top level.
<p><a name="index-error_002dbegin-63"></a>A quit or error annotation may be preceded by
<pre class="smallexample"> ^Z^Zerror-begin
</pre>
<p>Any output between that and the quit or error annotation is the error
message.
<p>Warning messages are not yet annotated.
<!-- If we want to change that, need to fix warning(), type_error(), -->
<!-- range_error(), and possibly other places. -->
</body></html>