• 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-2011.09/share/doc/arm-arm-none-eabi/html/gdb/
1<html lang="en">
2<head>
3<title>Editing - 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="Controlling-GDB.html#Controlling-GDB" title="Controlling GDB">
9<link rel="prev" href="Prompt.html#Prompt" title="Prompt">
10<link rel="next" href="Command-History.html#Command-History" title="Command History">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<!--
13Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
141998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
15Free Software Foundation, Inc.
16
17Permission is granted to copy, distribute and/or modify this document
18under the terms of the GNU Free Documentation License, Version 1.3 or
19any later version published by the Free Software Foundation; with the
20Invariant Sections being ``Free Software'' and ``Free Software Needs
21Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
22and with the Back-Cover Texts as in (a) below.
23
24(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
25this GNU Manual.  Buying copies from GNU Press supports the FSF in
26developing GNU and promoting software freedom.''-->
27<meta http-equiv="Content-Style-Type" content="text/css">
28<style type="text/css"><!--
29  pre.display { font-family:inherit }
30  pre.format  { font-family:inherit }
31  pre.smalldisplay { font-family:inherit; font-size:smaller }
32  pre.smallformat  { font-family:inherit; font-size:smaller }
33  pre.smallexample { font-size:smaller }
34  pre.smalllisp    { font-size:smaller }
35  span.sc    { font-variant:small-caps }
36  span.roman { font-family:serif; font-weight:normal; } 
37  span.sansserif { font-family:sans-serif; font-weight:normal; } 
38--></style>
39<link rel="stylesheet" type="text/css" href="../cs.css">
40</head>
41<body>
42<div class="node">
43<a name="Editing"></a>
44<p>
45Next:&nbsp;<a rel="next" accesskey="n" href="Command-History.html#Command-History">Command History</a>,
46Previous:&nbsp;<a rel="previous" accesskey="p" href="Prompt.html#Prompt">Prompt</a>,
47Up:&nbsp;<a rel="up" accesskey="u" href="Controlling-GDB.html#Controlling-GDB">Controlling GDB</a>
48<hr>
49</div>
50
51<h3 class="section">22.2 Command Editing</h3>
52
53<p><a name="index-readline-1432"></a><a name="index-command-line-editing-1433"></a>
54<span class="sc">gdb</span> reads its input commands via the <dfn>Readline</dfn> interface.  This
55<span class="sc">gnu</span> library provides consistent behavior for programs which provide a
56command line interface to the user.  Advantages are <span class="sc">gnu</span> Emacs-style
57or <dfn>vi</dfn>-style inline editing of commands, <code>csh</code>-like history
58substitution, and a storage and recall of command history across
59debugging sessions.
60
61   <p>You may control the behavior of command line editing in <span class="sc">gdb</span> with the
62command <code>set</code>.
63
64     
65<a name="index-set-editing-1434"></a>
66<a name="index-editing-1435"></a>
67<dl><dt><code>set editing</code><dt><code>set editing on</code><dd>Enable command line editing (enabled by default).
68
69     <br><dt><code>set editing off</code><dd>Disable command line editing.
70
71     <p><a name="index-show-editing-1436"></a><br><dt><code>show editing</code><dd>Show whether command line editing is enabled. 
72</dl>
73
74   <p>See <a href="Command-Line-Editing.html#Command-Line-Editing">Command Line Editing</a>, for more details about the Readline
75interface.  Users unfamiliar with <span class="sc">gnu</span> Emacs or <code>vi</code> are
76encouraged to read that chapter.
77
78   </body></html>
79
80