* breakpoint.h (enum enable): New enum shlib_disabled for
[deliverable/binutils-gdb.git] / gdb / i386m3-nat.c
index 8892e1670234b30a9bfb81e3a14015b2827f6ae1..bbaa022f3fada2e6fdc94f01ff51503a23a90233 100644 (file)
@@ -15,10 +15,11 @@ GNU General Public License for more details.
 
 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.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
 #include "inferior.h"
+#include "floatformat.h"
 
 #include <stdio.h>
 
@@ -119,7 +120,7 @@ fetch_inferior_registers (regno)
                          &stateCnt);
 
   if (ret != KERN_SUCCESS)
-    message ("fetch_inferior_registers: %s ",
+    warning ("fetch_inferior_registers: %s ",
             mach_error_string (ret));
 #if 0
   /* It may be more effective to store validate all of them,
@@ -167,7 +168,7 @@ store_inferior_registers (regno)
 
    if (ret != KERN_SUCCESS) 
     {
-      message ("store_inferior_registers (get): %s",
+      warning ("store_inferior_registers (get): %s",
               mach_error_string (ret));
       if (must_suspend_thread)
        setup_thread (current_thread, 0);
@@ -198,7 +199,7 @@ store_inferior_registers (regno)
                          i386_THREAD_STATE_COUNT);
   
   if (ret != KERN_SUCCESS)
-    message ("store_inferior_registers (set): %s",
+    warning ("store_inferior_registers (set): %s",
             mach_error_string (ret));
 
   if (must_suspend_thread)
@@ -215,7 +216,7 @@ store_inferior_registers (regno)
  * core file. If your UX does something else, adapt the routine
  * below to return the offset to the given register.
  * 
- * Called by coredep.c(fetch_core_registers)
+ * Called by core-aout.c(fetch_core_registers)
  */
 
 unsigned int
@@ -361,7 +362,7 @@ get_i387_state (fstate)
 
   if (ret != KERN_SUCCESS)
     {
-      message ("Can not get live floating point state: %s",
+      warning ("Can not get live floating point state: %s",
               mach_error_string (ret));
       return FALSE;
     }
@@ -374,7 +375,7 @@ get_i387_state (fstate)
   /* Clear the target then copy thread's float state there.
      Make a copy of the status word, for some reason?
    */
-  bzero (fstate, sizeof(struct fpstate));
+  memset (fstate, 0, sizeof (struct fpstate));
 
   fstate->status = fsp->exc_status;
 
@@ -410,7 +411,7 @@ i386_mach3_float_info()
 
   if (!valid) 
     {
-      message("no floating point status saved");
+      warning ("no floating point status saved");
       return;
     }
   
This page took 0.024892 seconds and 4 git commands to generate.