Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

225 rindas
9.9KB

  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-2020 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 6.5, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <title>MIPS (Debugging with GDB)</title>
  17. <meta name="description" content="MIPS (Debugging with GDB)">
  18. <meta name="keywords" content="MIPS (Debugging with GDB)">
  19. <meta name="resource-type" content="document">
  20. <meta name="distribution" content="global">
  21. <meta name="Generator" content="makeinfo">
  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="Architectures.html#Architectures" rel="up" title="Architectures">
  26. <link href="HPPA.html#HPPA" rel="next" title="HPPA">
  27. <link href="Alpha.html#Alpha" rel="prev" title="Alpha">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.indentedblock {margin-right: 0em}
  32. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  33. blockquote.smallquotation {font-size: smaller}
  34. div.display {margin-left: 3.2em}
  35. div.example {margin-left: 3.2em}
  36. div.lisp {margin-left: 3.2em}
  37. div.smalldisplay {margin-left: 3.2em}
  38. div.smallexample {margin-left: 3.2em}
  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.nolinebreak {white-space: nowrap}
  50. span.roman {font-family: initial; font-weight: normal}
  51. span.sansserif {font-family: sans-serif; font-weight: normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en">
  57. <a name="MIPS"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="HPPA.html#HPPA" accesskey="n" rel="next">HPPA</a>, Previous: <a href="Alpha.html#Alpha" accesskey="p" rel="prev">Alpha</a>, Up: <a href="Architectures.html#Architectures" accesskey="u" rel="up">Architectures</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>
  61. </div>
  62. <hr>
  63. <a name="MIPS-1"></a>
  64. <h4 class="subsection">21.4.4 <acronym>MIPS</acronym></h4>
  65. <a name="index-stack-on-Alpha"></a>
  66. <a name="index-stack-on-MIPS"></a>
  67. <a name="index-Alpha-stack"></a>
  68. <a name="index-MIPS-stack"></a>
  69. <p>Alpha- and <acronym>MIPS</acronym>-based computers use an unusual stack frame, which
  70. sometimes requires <small>GDB</small> to search backward in the object code to
  71. find the beginning of a function.
  72. </p>
  73. <a name="index-response-time_002c-MIPS-debugging"></a>
  74. <p>To improve response time (especially for embedded applications, where
  75. <small>GDB</small> may be restricted to a slow serial line for this search)
  76. you may want to limit the size of this search, using one of these
  77. commands:
  78. </p>
  79. <dl compact="compact">
  80. <dd><a name="index-heuristic_002dfence_002dpost-_0028Alpha_002c-MIPS_0029"></a>
  81. </dd>
  82. <dt><code>set heuristic-fence-post <var>limit</var></code></dt>
  83. <dd><p>Restrict <small>GDB</small> to examining at most <var>limit</var> bytes in its
  84. search for the beginning of a function. A value of <var>0</var> (the
  85. default) means there is no limit. However, except for <var>0</var>, the
  86. larger the limit the more bytes <code>heuristic-fence-post</code> must search
  87. and therefore the longer it takes to run. You should only need to use
  88. this command when debugging a stripped executable.
  89. </p>
  90. </dd>
  91. <dt><code>show heuristic-fence-post</code></dt>
  92. <dd><p>Display the current limit.
  93. </p></dd>
  94. </dl>
  95. <p>These commands are available <em>only</em> when <small>GDB</small> is configured
  96. for debugging programs on Alpha or <acronym>MIPS</acronym> processors.
  97. </p>
  98. <p>Several <acronym>MIPS</acronym>-specific commands are available when debugging <acronym>MIPS</acronym>
  99. programs:
  100. </p>
  101. <dl compact="compact">
  102. <dt><code>set mips abi <var>arg</var></code></dt>
  103. <dd><a name="index-set-mips-abi"></a>
  104. <a name="index-set-ABI-for-MIPS"></a>
  105. <p>Tell <small>GDB</small> which <acronym>MIPS</acronym> ABI is used by the inferior. Possible
  106. values of <var>arg</var> are:
  107. </p>
  108. <dl compact="compact">
  109. <dt>&lsquo;<samp>auto</samp>&rsquo;</dt>
  110. <dd><p>The default ABI associated with the current binary (this is the
  111. default).
  112. </p></dd>
  113. <dt>&lsquo;<samp>o32</samp>&rsquo;</dt>
  114. <dt>&lsquo;<samp>o64</samp>&rsquo;</dt>
  115. <dt>&lsquo;<samp>n32</samp>&rsquo;</dt>
  116. <dt>&lsquo;<samp>n64</samp>&rsquo;</dt>
  117. <dt>&lsquo;<samp>eabi32</samp>&rsquo;</dt>
  118. <dt>&lsquo;<samp>eabi64</samp>&rsquo;</dt>
  119. </dl>
  120. </dd>
  121. <dt><code>show mips abi</code></dt>
  122. <dd><a name="index-show-mips-abi"></a>
  123. <p>Show the <acronym>MIPS</acronym> ABI used by <small>GDB</small> to debug the inferior.
  124. </p>
  125. </dd>
  126. <dt><code>set mips compression <var>arg</var></code></dt>
  127. <dd><a name="index-set-mips-compression"></a>
  128. <a name="index-code-compression_002c-MIPS"></a>
  129. <p>Tell <small>GDB</small> which <acronym>MIPS</acronym> compressed
  130. <acronym title="Instruction Set Architecture">ISA</acronym> (Instruction Set Architecture) encoding is used by the
  131. inferior. <small>GDB</small> uses this for code disassembly and other
  132. internal interpretation purposes. This setting is only referred to
  133. when no executable has been associated with the debugging session or
  134. the executable does not provide information about the encoding it uses.
  135. Otherwise this setting is automatically updated from information
  136. provided by the executable.
  137. </p>
  138. <p>Possible values of <var>arg</var> are &lsquo;<samp>mips16</samp>&rsquo; and &lsquo;<samp>micromips</samp>&rsquo;.
  139. The default compressed <acronym title="Instruction Set Architecture">ISA</acronym> encoding is &lsquo;<samp>mips16</samp>&rsquo;, as
  140. executables containing <acronym>MIPS16</acronym> code frequently are not
  141. identified as such.
  142. </p>
  143. <p>This setting is &ldquo;sticky&rdquo;; that is, it retains its value across
  144. debugging sessions until reset either explicitly with this command or
  145. implicitly from an executable.
  146. </p>
  147. <p>The compiler and/or assembler typically add symbol table annotations to
  148. identify functions compiled for the <acronym>MIPS16</acronym> or
  149. <acronym>microMIPS</acronym> <acronym title="Instruction Set Architecture">ISA</acronym>s. If these function-scope annotations
  150. are present, <small>GDB</small> uses them in preference to the global
  151. compressed <acronym title="Instruction Set Architecture">ISA</acronym> encoding setting.
  152. </p>
  153. </dd>
  154. <dt><code>show mips compression</code></dt>
  155. <dd><a name="index-show-mips-compression"></a>
  156. <p>Show the <acronym>MIPS</acronym> compressed <acronym title="Instruction Set Architecture">ISA</acronym> encoding used by
  157. <small>GDB</small> to debug the inferior.
  158. </p>
  159. </dd>
  160. <dt><code>set mipsfpu</code></dt>
  161. <dt><code>show mipsfpu</code></dt>
  162. <dd><p>See <a href="MIPS-Embedded.html#MIPS-Embedded">set mipsfpu</a>.
  163. </p>
  164. </dd>
  165. <dt><code>set mips mask-address <var>arg</var></code></dt>
  166. <dd><a name="index-set-mips-mask_002daddress"></a>
  167. <a name="index-MIPS-addresses_002c-masking"></a>
  168. <p>This command determines whether the most-significant 32 bits of 64-bit
  169. <acronym>MIPS</acronym> addresses are masked off. The argument <var>arg</var> can be
  170. &lsquo;<samp>on</samp>&rsquo;, &lsquo;<samp>off</samp>&rsquo;, or &lsquo;<samp>auto</samp>&rsquo;. The latter is the default
  171. setting, which lets <small>GDB</small> determine the correct value.
  172. </p>
  173. </dd>
  174. <dt><code>show mips mask-address</code></dt>
  175. <dd><a name="index-show-mips-mask_002daddress"></a>
  176. <p>Show whether the upper 32 bits of <acronym>MIPS</acronym> addresses are masked off or
  177. not.
  178. </p>
  179. </dd>
  180. <dt><code>set remote-mips64-transfers-32bit-regs</code></dt>
  181. <dd><a name="index-set-remote_002dmips64_002dtransfers_002d32bit_002dregs"></a>
  182. <p>This command controls compatibility with 64-bit <acronym>MIPS</acronym> targets that
  183. transfer data in 32-bit quantities. If you have an old <acronym>MIPS</acronym> 64 target
  184. that transfers 32 bits for some registers, like <small>SR</small> and <small>FSR</small>,
  185. and 64 bits for other registers, set this option to &lsquo;<samp>on</samp>&rsquo;.
  186. </p>
  187. </dd>
  188. <dt><code>show remote-mips64-transfers-32bit-regs</code></dt>
  189. <dd><a name="index-show-remote_002dmips64_002dtransfers_002d32bit_002dregs"></a>
  190. <p>Show the current setting of compatibility with older <acronym>MIPS</acronym> 64 targets.
  191. </p>
  192. </dd>
  193. <dt><code>set debug mips</code></dt>
  194. <dd><a name="index-set-debug-mips"></a>
  195. <p>This command turns on and off debugging messages for the <acronym>MIPS</acronym>-specific
  196. target code in <small>GDB</small>.
  197. </p>
  198. </dd>
  199. <dt><code>show debug mips</code></dt>
  200. <dd><a name="index-show-debug-mips"></a>
  201. <p>Show the current setting of <acronym>MIPS</acronym> debugging messages.
  202. </p></dd>
  203. </dl>
  204. <hr>
  205. <div class="header">
  206. <p>
  207. Next: <a href="HPPA.html#HPPA" accesskey="n" rel="next">HPPA</a>, Previous: <a href="Alpha.html#Alpha" accesskey="p" rel="prev">Alpha</a>, Up: <a href="Architectures.html#Architectures" accesskey="u" rel="up">Architectures</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>
  208. </div>
  209. </body>
  210. </html>