* breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
[deliverable/binutils-gdb.git] / gdb / i387-tdep.c
index e2e55576ffea863fbc270554aa77bb22d77875ef..560050727e74c750eb26feaeeccdf5deec9f2556 100644 (file)
@@ -17,31 +17,13 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-#include <stdio.h>
 #include "defs.h"
-#include "param.h"
 #include "frame.h"
 #include "inferior.h"
 #include "language.h"
 #include "gdbcore.h"
 #include "ieee-float.h"
 
-#ifdef USG
-#include <sys/types.h>
-#endif
-
-#include <sys/param.h>
-#include <sys/dir.h>
-#include <signal.h>
-#include <sys/user.h>
-#include <sys/ioctl.h>
-#include <fcntl.h>
-
-#include <sys/file.h>
-#include <sys/stat.h>
-
-#include <sys/reg.h>
-
 struct ext_format ext_format_i387 = {
 /* tot sbyte smask expbyte     manbyte */
    10, 9,    0x80, 9,8,                4,0             /* i387 */
@@ -49,23 +31,26 @@ struct ext_format ext_format_i387 = {
 
 /* FIXME:  Eliminate these routines when we have the time to change all
    the callers.  */
+
 void
 i387_to_double (from, to)
-     char *from, *to;
+     char *from;
+     char *to;
 {
   ieee_extended_to_double (&ext_format_i387, from, (double *)to);
 }
 
 void
 double_to_i387 (from, to)
-     char *from, *to;
+     char *from;
+     char *to;
 {
   double_to_ieee_extended (&ext_format_i387, (double *)from, to);
 }
 
 void
 print_387_control_word (control)
-unsigned short control;
+     unsigned int control;
 {
   printf ("control %s: ", local_hex_string(control));
   printf ("compute to ");
@@ -96,13 +81,13 @@ unsigned short control;
       printf (";");
     }
   printf ("\n");
-  if (control & 0xe080) printf ("warning: reserved bits on: %s\n",
+  if (control & 0xe080) warning ("reserved bits on: %s\n",
                                local_hex_string(control & 0xe080));
 }
 
 void
 print_387_status_word (status)
-     unsigned short status;
+     unsigned int status;
 {
   printf ("status %s: ", local_hex_string (status));
   if (status & 0xff) 
@@ -122,6 +107,9 @@ print_387_status_word (status)
          (status & 0x0400) != 0,
          (status & 0x0200) != 0,
          (status & 0x0100) != 0);
-  
+
+  /* FIXME: Someone claims this should be 7 - (status >> 11) & 7 for AIX.
+     What's the story?  Is the following just wrong or are differing
+     notations in use?  */
   printf ("top %d\n", (status >> 11) & 7);
 }
This page took 0.023907 seconds and 4 git commands to generate.