1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<!-- Copyright (C) 1988-2021 Free Software Foundation, Inc.
4
5Permission is granted to copy, distribute and/or modify this document
6under the terms of the GNU Free Documentation License, Version 1.3 or
7any later version published by the Free Software Foundation; with the
8Invariant Sections being "Free Software" and "Free Software Needs
9Free Documentation", with the Front-Cover Texts being "A GNU Manual,"
10and with the Back-Cover Texts as in (a) below.
11
12(a) The FSF's Back-Cover Text is: "You are free to copy and modify
13this GNU Manual.  Buying copies from GNU Press supports the FSF in
14developing GNU and promoting software freedom." -->
15<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
16<head>
17<title>Debugging with GDB: ARM</title>
18
19<meta name="description" content="Debugging with GDB: ARM">
20<meta name="keywords" content="Debugging with GDB: ARM">
21<meta name="resource-type" content="document">
22<meta name="distribution" content="global">
23<meta name="Generator" content="makeinfo">
24<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
25<link href="index.html#Top" rel="start" title="Top">
26<link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
27<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
28<link href="Embedded-Processors.html#Embedded-Processors" rel="up" title="Embedded Processors">
29<link href="BPF.html#BPF" rel="next" title="BPF">
30<link href="ARC.html#ARC" rel="previous" title="ARC">
31<style type="text/css">
32<!--
33a.summary-letter {text-decoration: none}
34blockquote.smallquotation {font-size: smaller}
35div.display {margin-left: 3.2em}
36div.example {margin-left: 3.2em}
37div.indentedblock {margin-left: 3.2em}
38div.lisp {margin-left: 3.2em}
39div.smalldisplay {margin-left: 3.2em}
40div.smallexample {margin-left: 3.2em}
41div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
42div.smalllisp {margin-left: 3.2em}
43kbd {font-style:oblique}
44pre.display {font-family: inherit}
45pre.format {font-family: inherit}
46pre.menu-comment {font-family: serif}
47pre.menu-preformatted {font-family: serif}
48pre.smalldisplay {font-family: inherit; font-size: smaller}
49pre.smallexample {font-size: smaller}
50pre.smallformat {font-family: inherit; font-size: smaller}
51pre.smalllisp {font-size: smaller}
52span.nocodebreak {white-space:nowrap}
53span.nolinebreak {white-space:nowrap}
54span.roman {font-family:serif; font-weight:normal}
55span.sansserif {font-family:sans-serif; font-weight:normal}
56ul.no-bullet {list-style: none}
57-->
58</style>
59
60
61</head>
62
63<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
64<a name="ARM"></a>
65<div class="header">
66<p>
67Next: <a href="BPF.html#BPF" accesskey="n" rel="next">BPF</a>, Previous: <a href="ARC.html#ARC" accesskey="p" rel="previous">ARC</a>, Up: <a href="Embedded-Processors.html#Embedded-Processors" accesskey="u" rel="up">Embedded Processors</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>
68</div>
69<hr>
70<a name="ARM-1"></a>
71<h4 class="subsection">21.3.2 ARM</h4>
72
73<p><small>GDB</small> provides the following ARM-specific commands:
74</p>
75<dl compact="compact">
76<dt><code>set arm disassembler</code></dt>
77<dd><a name="index-set-arm"></a>
78<p>This commands selects from a list of disassembly styles.  The
79<code>&quot;std&quot;</code> style is the standard style.
80</p>
81</dd>
82<dt><code>show arm disassembler</code></dt>
83<dd><a name="index-show-arm"></a>
84<p>Show the current disassembly style.
85</p>
86</dd>
87<dt><code>set arm apcs32</code></dt>
88<dd><a name="index-ARM-32_002dbit-mode"></a>
89<p>This command toggles ARM operation mode between 32-bit and 26-bit.
90</p>
91</dd>
92<dt><code>show arm apcs32</code></dt>
93<dd><p>Display the current usage of the ARM 32-bit mode.
94</p>
95</dd>
96<dt><code>set arm fpu <var>fputype</var></code></dt>
97<dd><p>This command sets the ARM floating-point unit (FPU) type.  The
98argument <var>fputype</var> can be one of these:
99</p>
100<dl compact="compact">
101<dt><code>auto</code></dt>
102<dd><p>Determine the FPU type by querying the OS ABI.
103</p></dd>
104<dt><code>softfpa</code></dt>
105<dd><p>Software FPU, with mixed-endian doubles on little-endian ARM
106processors.
107</p></dd>
108<dt><code>fpa</code></dt>
109<dd><p>GCC-compiled FPA co-processor.
110</p></dd>
111<dt><code>softvfp</code></dt>
112<dd><p>Software FPU with pure-endian doubles.
113</p></dd>
114<dt><code>vfp</code></dt>
115<dd><p>VFP co-processor.
116</p></dd>
117</dl>
118
119</dd>
120<dt><code>show arm fpu</code></dt>
121<dd><p>Show the current type of the FPU.
122</p>
123</dd>
124<dt><code>set arm abi</code></dt>
125<dd><p>This command forces <small>GDB</small> to use the specified ABI.
126</p>
127</dd>
128<dt><code>show arm abi</code></dt>
129<dd><p>Show the currently used ABI.
130</p>
131</dd>
132<dt><code>set arm fallback-mode (arm|thumb|auto)</code></dt>
133<dd><p><small>GDB</small> uses the symbol table, when available, to determine
134whether instructions are ARM or Thumb.  This command controls
135<small>GDB</small>&rsquo;s default behavior when the symbol table is not
136available.  The default is &lsquo;<samp>auto</samp>&rsquo;, which causes <small>GDB</small> to
137use the current execution mode (from the <code>T</code> bit in the <code>CPSR</code>
138register).
139</p>
140</dd>
141<dt><code>show arm fallback-mode</code></dt>
142<dd><p>Show the current fallback instruction mode.
143</p>
144</dd>
145<dt><code>set arm force-mode (arm|thumb|auto)</code></dt>
146<dd><p>This command overrides use of the symbol table to determine whether
147instructions are ARM or Thumb.  The default is &lsquo;<samp>auto</samp>&rsquo;, which
148causes <small>GDB</small> to use the symbol table and then the setting
149of &lsquo;<samp>set arm fallback-mode</samp>&rsquo;.
150</p>
151</dd>
152<dt><code>show arm force-mode</code></dt>
153<dd><p>Show the current forced instruction mode.
154</p>
155</dd>
156<dt><code>set debug arm</code></dt>
157<dd><p>Toggle whether to display ARM-specific debugging messages from the ARM
158target support subsystem.
159</p>
160</dd>
161<dt><code>show debug arm</code></dt>
162<dd><p>Show whether ARM-specific debugging messages are enabled.
163</p></dd>
164</dl>
165
166<dl compact="compact">
167<dt><code>target sim <span class="roman">[</span><var>simargs</var><span class="roman">]</span> &hellip;</code></dt>
168<dd><p>The <small>GDB</small> ARM simulator accepts the following optional arguments.
169</p>
170<dl compact="compact">
171<dt><code>--swi-support=<var>type</var></code></dt>
172<dd><p>Tell the simulator which SWI interfaces to support.  The argument
173<var>type</var> may be a comma separated list of the following values.
174The default value is <code>all</code>.
175</p>
176<dl compact="compact">
177<dt><code>none</code></dt>
178<dt><code>demon</code></dt>
179<dt><code>angel</code></dt>
180<dt><code>redboot</code></dt>
181<dt><code>all</code></dt>
182</dl>
183</dd>
184</dl>
185</dd>
186</dl>
187
188<hr>
189<div class="header">
190<p>
191Next: <a href="BPF.html#BPF" accesskey="n" rel="next">BPF</a>, Previous: <a href="ARC.html#ARC" accesskey="p" rel="previous">ARC</a>, Up: <a href="Embedded-Processors.html#Embedded-Processors" accesskey="u" rel="up">Embedded Processors</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>
192</div>
193
194
195
196</body>
197</html>
198