• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/gdb/
1<html lang="en">
2<head>
3<title>Signaling - Debugging with GDB</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Debugging with GDB">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Altering.html#Altering" title="Altering">
9<link rel="prev" href="Jumping.html#Jumping" title="Jumping">
10<link rel="next" href="Returning.html#Returning" title="Returning">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<!--
13Copyright (C) 1988-2013 Free Software Foundation, Inc.
14
15Permission is granted to copy, distribute and/or modify this document
16under the terms of the GNU Free Documentation License, Version 1.3 or
17any later version published by the Free Software Foundation; with the
18Invariant Sections being ``Free Software'' and ``Free Software Needs
19Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
20and with the Back-Cover Texts as in (a) below.
21
22(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
23this GNU Manual.  Buying copies from GNU Press supports the FSF in
24developing GNU and promoting software freedom.''
25-->
26<meta http-equiv="Content-Style-Type" content="text/css">
27<style type="text/css"><!--
28  pre.display { font-family:inherit }
29  pre.format  { font-family:inherit }
30  pre.smalldisplay { font-family:inherit; font-size:smaller }
31  pre.smallformat  { font-family:inherit; font-size:smaller }
32  pre.smallexample { font-size:smaller }
33  pre.smalllisp    { font-size:smaller }
34  span.sc    { font-variant:small-caps }
35  span.roman { font-family:serif; font-weight:normal; } 
36  span.sansserif { font-family:sans-serif; font-weight:normal; } 
37--></style>
38<link rel="stylesheet" type="text/css" href="../cs.css">
39</head>
40<body>
41<div class="node">
42<a name="Signaling"></a>
43<p>
44Next:&nbsp;<a rel="next" accesskey="n" href="Returning.html#Returning">Returning</a>,
45Previous:&nbsp;<a rel="previous" accesskey="p" href="Jumping.html#Jumping">Jumping</a>,
46Up:&nbsp;<a rel="up" accesskey="u" href="Altering.html#Altering">Altering</a>
47<hr>
48</div>
49
50<h3 class="section">17.3 Giving your Program a Signal</h3>
51
52<p><a name="index-deliver-a-signal-to-a-program-1037"></a>
53     
54<a name="index-signal-1038"></a>
55<dl><dt><code>signal </code><var>signal</var><dd>Resume execution where your program stopped, but immediately give it the
56signal <var>signal</var>.  <var>signal</var> can be the name or the number of a
57signal.  For example, on many systems <code>signal 2</code> and <code>signal
58SIGINT</code> are both ways of sending an interrupt signal.
59
60     <p>Alternatively, if <var>signal</var> is zero, continue execution without
61giving a signal.  This is useful when your program stopped on account of
62a signal and would ordinarily see the signal when resumed with the
63<code>continue</code> command; &lsquo;<samp><span class="samp">signal 0</span></samp>&rsquo; causes it to resume without a
64signal.
65
66     <p><code>signal</code> does not repeat when you press &lt;RET&gt; a second time
67after executing the command. 
68</dl>
69   <!-- @end group -->
70
71   <p>Invoking the <code>signal</code> command is not the same as invoking the
72<code>kill</code> utility from the shell.  Sending a signal with <code>kill</code>
73causes <span class="sc">gdb</span> to decide what to do with the signal depending on
74the signal handling tables (see <a href="Signals.html#Signals">Signals</a>).  The <code>signal</code> command
75passes the signal directly to your program.
76
77   </body></html>
78
79