blob: ee001101538b49d813f256bf65be5b28d12de5f7 [file] [log] [blame]
<html lang="en">
<head>
<title>Errors - 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="Annotations.html#Annotations" title="Annotations">
<link rel="prev" href="Prompting.html#Prompting" title="Prompting">
<link rel="next" href="Invalidation.html#Invalidation" title="Invalidation">
<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="Errors"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Invalidation.html#Invalidation">Invalidation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Prompting.html#Prompting">Prompting</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Annotations.html#Annotations">Annotations</a>
<hr>
</div>
<h3 class="section">28.4 Errors</h3>
<p><a name="index-annotations-for-errors_002c-warnings-and-interrupts-3129"></a>
<a name="index-quit-annotation-3130"></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-annotation-3131"></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-annotation-3132"></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>