ARM.html 7.2 KB

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