* serial.h (SERIAL_SET_TTY_STATE): Comment return value.
[deliverable/binutils-gdb.git] / gdb / convex-tdep.c
index bd1a6b7fe379536a5a01e251fec7ab8277384c14..9fa1611cd09091a3f7171a75e51d95dc8bd8d761 100644 (file)
@@ -223,7 +223,7 @@ xfer_core_file (memaddr, myaddr, len)
         read zeros if reading, or do nothing if writing.  */
       else
        {
-         bzero (myaddr, i);
+         memset (myaddr, '\0', i);
          returnval = EIO;
        }
 
@@ -350,7 +350,7 @@ value_of_trapped_internalvar (var)
     {
       long vm[4];
       long i, *p;
-      bcopy (read_vector_register_1 (VM_REGNUM), vm, sizeof vm);
+      memcpy (vm, read_vector_register_1 (VM_REGNUM), sizeof vm);
       range_type =
        create_range_type ((struct type *) NULL, builtin_type_int, 0, len - 1);
       type =
@@ -368,8 +368,9 @@ value_of_trapped_internalvar (var)
        create_array_type ((struct type *) NULL, builtin_type_long_long,
                           range_type);
       val = allocate_value (type);
-      bcopy (read_vector_register_1 (name[1] - '0'),
-            VALUE_CONTENTS (val), TYPE_LENGTH (type));
+      memcpy (VALUE_CONTENTS (val),
+            read_vector_register_1 (name[1] - '0'),
+            TYPE_LENGTH (type));
     }
   else if (name[0] == 'v')
     {
@@ -610,6 +611,8 @@ thread_info ()
       ioctl (inferior_fd, PIXRDCREGS, &ps);
     }
 
+  /* FIXME: stop_signal is from target.h but stop_sigcode is a
+     convex-specific thing.  */
   printf_filtered ("Current thread %d stopped with signal %d.%d (%s).\n",
                   inferior_thread, stop_signal, stop_sigcode,
                   subsig_name (stop_signal, stop_sigcode));
@@ -857,6 +860,7 @@ psw_info (arg)
     }
 }
 \f
+void
 _initialize_convex_dep ()
 {
   add_com ("alias", class_support, alias_command,
This page took 0.023522 seconds and 4 git commands to generate.