Allow for the possibility that the local labels won't be in the objdump output.
[deliverable/binutils-gdb.git] / gdb / sun386-nat.c
index c37f4c202c518701ed2526ac4df7be40e2c1b170..a6f9dfade0f399b51a4a847749aa5992f0c70f83 100644 (file)
@@ -1,5 +1,6 @@
 /* Native support for Sun 386i's for GDB, the GNU debugger.
-   Copyright (C) 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1995, 1999, 2000, 2001
+   Free Software Foundation, Inc.
    Changes for sun386i by Jean Daniel Fekete (jdf@litp.univ-p6-7.fr),
    C2V Paris, April 89.
 
@@ -24,6 +25,7 @@
 #include "frame.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include <sys/param.h>
 #include <sys/dir.h>
@@ -45,9 +47,7 @@
 \f
 
 void
-core_file_command (filename, from_tty)
-     char *filename;
-     int from_tty;
+core_file_command (char *filename, int from_tty)
 {
   int val;
 
@@ -55,7 +55,7 @@ core_file_command (filename, from_tty)
      and mark data and stack spaces as empty.  */
 
   if (corefile)
-    free (corefile);
+    xfree (corefile);
   corefile = 0;
 
   if (corechan >= 0)
@@ -72,7 +72,7 @@ core_file_command (filename, from_tty)
   if (filename)
     {
       filename = tilde_expand (filename);
-      make_cleanup (free, filename);
+      make_cleanup (xfree, filename);
 
       if (have_inferior_p ())
        error ("To look at a core file, you must kill the program with \"kill\".");
@@ -137,9 +137,7 @@ core_file_command (filename, from_tty)
     printf_unfiltered ("No core file now.\n");
 }
 
-i387_to_double (from, to)
-     char *from;
-     char *to;
+i387_to_double (char *from, char *to)
 {
   long *lp;
   /* push extended mode on 387 stack, then pop in double mode
@@ -167,9 +165,7 @@ i387_to_double (from, to)
   asm ("popl %eax");           /* flush saved copy */
 }
 
-double_to_i387 (from, to)
-     char *from;
-     char *to;
+double_to_i387 (char *from, char *to)
 {
   /* push double mode on 387 stack, then pop in extended mode
    * no errors are possible because every 64-bit pattern
@@ -184,8 +180,7 @@ double_to_i387 (from, to)
 }
 
 void
-fetch_inferior_registers (regno)
-     int regno;
+fetch_inferior_registers (int regno)
 {
   struct regs inferior_registers;
   struct fp_state inferior_fp_registers;
@@ -211,8 +206,7 @@ fetch_inferior_registers (regno)
    Otherwise, REGNO specifies which register (so we can save time).  */
 
 void
-store_inferior_registers (regno)
-     int regno;
+store_inferior_registers (int regno)
 {
   struct regs inferior_registers;
   struct fp_state inferior_fp_registers;
This page took 0.023952 seconds and 4 git commands to generate.