blob: daaf735d35bdfbccabdf1e5e7fe7283f831451f2 [file] [log] [blame]
<html lang="en">
<head>
<title>MIPS Embedded - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Embedded-Processors.html#Embedded-Processors" title="Embedded Processors">
<link rel="prev" href="MicroBlaze.html#MicroBlaze" title="MicroBlaze">
<link rel="next" href="OpenRISC-1000.html#OpenRISC-1000" title="OpenRISC 1000">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1988-2019 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.''
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="MIPS-Embedded"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="OpenRISC-1000.html#OpenRISC-1000">OpenRISC 1000</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="MicroBlaze.html#MicroBlaze">MicroBlaze</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Embedded-Processors.html#Embedded-Processors">Embedded Processors</a>
<hr>
</div>
<h4 class="subsection">21.3.5 <acronym>MIPS</acronym> Embedded</h4>
<p class="noindent"><span class="sc">gdb</span> supports these special commands for <acronym>MIPS</acronym> targets:
<dl>
<dt><code>set mipsfpu double</code><dt><code>set mipsfpu single</code><dt><code>set mipsfpu none</code><dt><code>set mipsfpu auto</code><dt><code>show mipsfpu</code><dd><a name="index-set-mipsfpu-1583"></a><a name="index-show-mipsfpu-1584"></a><a name="index-g_t_0040acronym_007bMIPS_007d-remote-floating-point-1585"></a><a name="index-floating-point_002c-_0040acronym_007bMIPS_007d-remote-1586"></a>If your target board does not support the <acronym>MIPS</acronym> floating point
coprocessor, you should use the command &lsquo;<samp><span class="samp">set mipsfpu none</span></samp>&rsquo; (if you
need this, you may wish to put the command in your <span class="sc">gdb</span> init
file). This tells <span class="sc">gdb</span> how to find the return value of
functions which return floating point values. It also allows
<span class="sc">gdb</span> to avoid saving the floating point registers when calling
functions on the board. If you are using a floating point coprocessor
with only single precision floating point support, as on the <span class="sc">r4650</span>
processor, use the command &lsquo;<samp><span class="samp">set mipsfpu single</span></samp>&rsquo;. The default
double precision floating point coprocessor may be selected using
&lsquo;<samp><span class="samp">set mipsfpu double</span></samp>&rsquo;.
<p>In previous versions the only choices were double precision or no
floating point, so &lsquo;<samp><span class="samp">set mipsfpu on</span></samp>&rsquo; will select double precision
and &lsquo;<samp><span class="samp">set mipsfpu off</span></samp>&rsquo; will select no floating point.
<p>As usual, you can inquire about the <code>mipsfpu</code> variable with
&lsquo;<samp><span class="samp">show mipsfpu</span></samp>&rsquo;.
</dl>
</body></html>