summaryrefslogtreecommitdiff
path: root/share/doc/gdb/TUI-Commands.html
diff options
context:
space:
mode:
authoralk3pInjection <webmaster@raspii.tech>2024-02-04 16:16:35 +0800
committeralk3pInjection <webmaster@raspii.tech>2024-02-04 16:16:35 +0800
commitabdaadbcae30fe0c9a66c7516798279fdfd97750 (patch)
tree00a54a6e25601e43876d03c1a4a12a749d4a914c /share/doc/gdb/TUI-Commands.html
Import stripped Arm GNU Toolchain 13.2.Rel1HEADumineko
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads Change-Id: I7303388733328cd98ab9aa3c30236db67f2e9e9c
Diffstat (limited to 'share/doc/gdb/TUI-Commands.html')
-rw-r--r--share/doc/gdb/TUI-Commands.html321
1 files changed, 321 insertions, 0 deletions
diff --git a/share/doc/gdb/TUI-Commands.html b/share/doc/gdb/TUI-Commands.html
new file mode 100644
index 0000000..f0986fa
--- /dev/null
+++ b/share/doc/gdb/TUI-Commands.html
@@ -0,0 +1,321 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<!-- Copyright (C) 1988-2023 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." -->
+<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
+<head>
+<title>Debugging with GDB: TUI Commands</title>
+
+<meta name="description" content="Debugging with GDB: TUI Commands">
+<meta name="keywords" content="Debugging with GDB: TUI Commands">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="makeinfo">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<link href="index.html#Top" rel="start" title="Top">
+<link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
+<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="TUI.html#TUI" rel="up" title="TUI">
+<link href="TUI-Configuration.html#TUI-Configuration" rel="next" title="TUI Configuration">
+<link href="TUI-Mouse-Support.html#TUI-Mouse-Support" rel="previous" title="TUI Mouse Support">
+<style type="text/css">
+<!--
+a.summary-letter {text-decoration: none}
+blockquote.smallquotation {font-size: smaller}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+div.indentedblock {margin-left: 3.2em}
+div.lisp {margin-left: 3.2em}
+div.smalldisplay {margin-left: 3.2em}
+div.smallexample {margin-left: 3.2em}
+div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
+div.smalllisp {margin-left: 3.2em}
+kbd {font-style:oblique}
+pre.display {font-family: inherit}
+pre.format {font-family: inherit}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+pre.smalldisplay {font-family: inherit; font-size: smaller}
+pre.smallexample {font-size: smaller}
+pre.smallformat {font-family: inherit; font-size: smaller}
+pre.smalllisp {font-size: smaller}
+span.nocodebreak {white-space:nowrap}
+span.nolinebreak {white-space:nowrap}
+span.roman {font-family:serif; font-weight:normal}
+span.sansserif {font-family:sans-serif; font-weight:normal}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
+<a name="TUI-Commands"></a>
+<div class="header">
+<p>
+Next: <a href="TUI-Configuration.html#TUI-Configuration" accesskey="n" rel="next">TUI Configuration</a>, Previous: <a href="TUI-Mouse-Support.html#TUI-Mouse-Support" accesskey="p" rel="previous">TUI Mouse Support</a>, Up: <a href="TUI.html#TUI" accesskey="u" rel="up">TUI</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<hr>
+<a name="TUI_002dspecific-Commands"></a>
+<h3 class="section">25.5 TUI-specific Commands</h3>
+<a name="index-TUI-commands"></a>
+
+<p>The TUI has specific commands to control the text windows.
+These commands are always available, even when <small>GDB</small> is not in
+the TUI mode. When <small>GDB</small> is in the standard mode, most
+of these commands will automatically switch to the TUI mode.
+</p>
+<p>Note that if <small>GDB</small>&rsquo;s <code>stdout</code> is not connected to a
+terminal, or <small>GDB</small> has been started with the machine interface
+interpreter (see <a href="GDB_002fMI.html#GDB_002fMI">The <small>GDB/MI</small> Interface</a>), most of
+these commands will fail with an error, because it would not be
+possible or desirable to enable curses window management.
+</p>
+<dl compact="compact">
+<dt><code>tui enable</code></dt>
+<dd><a name="index-tui-enable"></a>
+<p>Activate TUI mode. The last active TUI window layout will be used if
+TUI mode has previously been used in the current debugging session,
+otherwise a default layout is used.
+</p>
+</dd>
+<dt><code>tui disable</code></dt>
+<dd><a name="index-tui-disable"></a>
+<p>Disable TUI mode, returning to the console interpreter.
+</p>
+<a name="info_005fwin_005fcommand"></a></dd>
+<dt><code>info win</code></dt>
+<dd><a name="index-info-win"></a>
+<p>List the names and sizes of all currently displayed windows.
+</p>
+</dd>
+<dt><code>tui new-layout <var>name</var> <var>window</var> <var>weight</var> <span class="roman">[</span><var>window</var> <var>weight</var>&hellip;<span class="roman">]</span></code></dt>
+<dd><a name="index-tui-new_002dlayout"></a>
+<p>Create a new TUI layout. The new layout will be named <var>name</var>, and
+can be accessed using the <code>layout</code> command (see below).
+</p>
+<p>Each <var>window</var> parameter is either the name of a window to display,
+or a window description. The windows will be displayed from top to
+bottom in the order listed.
+</p>
+<p>The names of the windows are the same as the ones given to the
+<code>focus</code> command (see below); additional, the <code>status</code>
+window can be specified. Note that, because it is of fixed height,
+the weight assigned to the status window is of no importance. It is
+conventional to use &lsquo;<samp>0</samp>&rsquo; here.
+</p>
+<p>A window description looks a bit like an invocation of <code>tui
+new-layout</code>, and is of the form
+{<span class="roman">[</span><code>-horizontal</code><span class="roman">]</span><var>window</var> <var>weight</var> <span class="roman">[</span><var>window</var> <var>weight</var>&hellip;<span class="roman">]</span>}.
+</p>
+<p>This specifies a sub-layout. If <code>-horizontal</code> is given, the
+windows in this description will be arranged side-by-side, rather than
+top-to-bottom.
+</p>
+<p>Each <var>weight</var> is an integer. It is the weight of this window
+relative to all the other windows in the layout. These numbers are
+used to calculate how much of the screen is given to each window.
+</p>
+<p>For example:
+</p>
+<div class="example">
+<pre class="example">(gdb) tui new-layout example src 1 regs 1 status 0 cmd 1
+</pre></div>
+
+<p>Here, the new layout is called &lsquo;<samp>example</samp>&rsquo;. It shows the source
+and register windows, followed by the status window, and then finally
+the command window. The non-status windows all have the same weight,
+so the terminal will be split into three roughly equal sections.
+</p>
+<p>Here is a more complex example, showing a horizontal layout:
+</p>
+<div class="example">
+<pre class="example">(gdb) tui new-layout example {-horizontal src 1 asm 1} 2 status 0 cmd 1
+</pre></div>
+
+<p>This will result in side-by-side source and assembly windows; with the
+status and command window being beneath these, filling the entire
+width of the terminal. Because they have weight 2, the source and
+assembly windows will be twice the height of the command window.
+</p>
+<a name="index-tui-layout"></a>
+<a name="index-layout"></a>
+</dd>
+<dt><code>tui layout <var>name</var></code></dt>
+<dt><code>layout <var>name</var></code></dt>
+<dd><p>Changes which TUI windows are displayed. The <var>name</var> parameter
+controls which layout is shown. It can be either one of the built-in
+layout names, or the name of a layout defined by the user using
+<code>tui new-layout</code>.
+</p>
+<p>The built-in layouts are as follows:
+</p>
+<dl compact="compact">
+<dt><code>next</code></dt>
+<dd><p>Display the next layout.
+</p>
+</dd>
+<dt><code>prev</code></dt>
+<dd><p>Display the previous layout.
+</p>
+</dd>
+<dt><code>src</code></dt>
+<dd><p>Display the source and command windows.
+</p>
+</dd>
+<dt><code>asm</code></dt>
+<dd><p>Display the assembly and command windows.
+</p>
+</dd>
+<dt><code>split</code></dt>
+<dd><p>Display the source, assembly, and command windows.
+</p>
+</dd>
+<dt><code>regs</code></dt>
+<dd><p>When in <code>src</code> layout display the register, source, and command
+windows. When in <code>asm</code> or <code>split</code> layout display the
+register, assembler, and command windows.
+</p></dd>
+</dl>
+
+<a name="index-focus"></a>
+</dd>
+<dt><code>tui focus <var>name</var></code></dt>
+<dt><code>focus <var>name</var></code></dt>
+<dd><p>Changes which TUI window is currently active for scrolling. The
+<var>name</var> parameter can be any of the following:
+</p>
+<dl compact="compact">
+<dt><code>next</code></dt>
+<dd><p>Make the next window active for scrolling.
+</p>
+</dd>
+<dt><code>prev</code></dt>
+<dd><p>Make the previous window active for scrolling.
+</p>
+</dd>
+<dt><code>src</code></dt>
+<dd><p>Make the source window active for scrolling.
+</p>
+</dd>
+<dt><code>asm</code></dt>
+<dd><p>Make the assembly window active for scrolling.
+</p>
+</dd>
+<dt><code>regs</code></dt>
+<dd><p>Make the register window active for scrolling.
+</p>
+</dd>
+<dt><code>cmd</code></dt>
+<dd><p>Make the command window active for scrolling.
+</p></dd>
+</dl>
+
+<a name="index-tui-refresh"></a>
+<a name="index-refresh"></a>
+</dd>
+<dt><code>tui refresh</code></dt>
+<dt><code>refresh</code></dt>
+<dd><p>Refresh the screen. This is similar to typing <kbd>C-L</kbd>.
+</p>
+</dd>
+<dt><code>tui reg <var>group</var></code></dt>
+<dd><a name="index-tui-reg"></a>
+<p>Changes the register group displayed in the tui register window to
+<var>group</var>. If the register window is not currently displayed this
+command will cause the register window to be displayed. The list of
+register groups, as well as their order is target specific. The
+following groups are available on most targets:
+</p><dl compact="compact">
+<dt><code>next</code></dt>
+<dd><p>Repeatedly selecting this group will cause the display to cycle
+through all of the available register groups.
+</p>
+</dd>
+<dt><code>prev</code></dt>
+<dd><p>Repeatedly selecting this group will cause the display to cycle
+through all of the available register groups in the reverse order to
+<var>next</var>.
+</p>
+</dd>
+<dt><code>general</code></dt>
+<dd><p>Display the general registers.
+</p></dd>
+<dt><code>float</code></dt>
+<dd><p>Display the floating point registers.
+</p></dd>
+<dt><code>system</code></dt>
+<dd><p>Display the system registers.
+</p></dd>
+<dt><code>vector</code></dt>
+<dd><p>Display the vector registers.
+</p></dd>
+<dt><code>all</code></dt>
+<dd><p>Display all registers.
+</p></dd>
+</dl>
+
+</dd>
+<dt><code>update</code></dt>
+<dd><a name="index-update"></a>
+<p>Update the source window and the current execution point.
+</p>
+<a name="index-tui-window-height"></a>
+<a name="index-winheight"></a>
+</dd>
+<dt><code>tui window height <var>name</var> +<var>count</var></code></dt>
+<dt><code>tui window height <var>name</var> -<var>count</var></code></dt>
+<dt><code>winheight <var>name</var> +<var>count</var></code></dt>
+<dt><code>winheight <var>name</var> -<var>count</var></code></dt>
+<dd><p>Change the height of the window <var>name</var> by <var>count</var> lines.
+Positive counts increase the height, while negative counts decrease
+it. The <var>name</var> parameter can be the name of any currently visible
+window. The names of the currently visible windows can be discovered
+using <kbd>info win</kbd> (see <a href="#info_005fwin_005fcommand">info win</a>).
+</p>
+<p>The set of currently visible windows must always fill the terminal,
+and so, it is only possible to resize on window if there are other
+visible windows that can either give or receive the extra terminal
+space.
+</p>
+<a name="index-tui-window-width"></a>
+<a name="index-winwidth"></a>
+</dd>
+<dt><code>tui window width <var>name</var> +<var>count</var></code></dt>
+<dt><code>tui window width <var>name</var> -<var>count</var></code></dt>
+<dt><code>winwidth <var>name</var> +<var>count</var></code></dt>
+<dt><code>winwidth <var>name</var> -<var>count</var></code></dt>
+<dd><p>Change the width of the window <var>name</var> by <var>count</var> columns.
+Positive counts increase the width, while negative counts decrease it.
+The <var>name</var> parameter can be the name of any currently visible
+window. The names of the currently visible windows can be discovered
+using <code>info win</code> (see <a href="#info_005fwin_005fcommand">info win</a>).
+</p>
+<p>The set of currently visible windows must always fill the terminal,
+and so, it is only possible to resize on window if there are other
+visible windows that can either give or receive the extra terminal
+space.
+</p></dd>
+</dl>
+
+<hr>
+<div class="header">
+<p>
+Next: <a href="TUI-Configuration.html#TUI-Configuration" accesskey="n" rel="next">TUI Configuration</a>, Previous: <a href="TUI-Mouse-Support.html#TUI-Mouse-Support" accesskey="p" rel="previous">TUI Mouse Support</a>, Up: <a href="TUI.html#TUI" accesskey="u" rel="up">TUI</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
+</div>
+
+
+
+</body>
+</html>