* m32c-desc.c: Regenerated.
[deliverable/binutils-gdb.git] / gdb / valops.c
index 835567f9431b2e86905392316f5a0d8cc067c2eb..54c81ac2f0acf98406934874fd9b8805a991da7c 100644 (file)
@@ -566,10 +566,10 @@ value_assign (struct value *toval, struct value *fromval)
 
     case lval_memory:
       {
-       const bfd_byte *dest_buffer;
+       const gdb_byte *dest_buffer;
        CORE_ADDR changed_addr;
        int changed_len;
-        char buffer[sizeof (LONGEST)];
+        gdb_byte buffer[sizeof (LONGEST)];
 
        if (value_bitsize (toval))
          {
@@ -631,7 +631,7 @@ value_assign (struct value *toval, struct value *fromval)
               modify it, and copy it back in.  */
            int amount_copied;
            int amount_to_copy;
-           char *buffer;
+           gdb_byte *buffer;
            int reg_offset;
            int byte_offset;
            int regno;
@@ -655,7 +655,7 @@ value_assign (struct value *toval, struct value *fromval)
              amount_to_copy = byte_offset + TYPE_LENGTH (type);
            
            /* And a bounce buffer.  Be slightly over generous.  */
-           buffer = (char *) alloca (amount_to_copy + MAX_REGISTER_SIZE);
+           buffer = alloca (amount_to_copy + MAX_REGISTER_SIZE);
 
            /* Copy it in.  */
            for (regno = reg_offset, amount_copied = 0;
@@ -933,54 +933,6 @@ value_ind (struct value *arg1)
   return 0;                    /* For lint -- never reached */
 }
 \f
-/* Pushing small parts of stack frames.  */
-
-/* Push one word (the size of object that a register holds).  */
-
-CORE_ADDR
-push_word (CORE_ADDR sp, ULONGEST word)
-{
-  int len = DEPRECATED_REGISTER_SIZE;
-  char buffer[MAX_REGISTER_SIZE];
-
-  store_unsigned_integer (buffer, len, word);
-  if (INNER_THAN (1, 2))
-    {
-      /* stack grows downward */
-      sp -= len;
-      write_memory (sp, buffer, len);
-    }
-  else
-    {
-      /* stack grows upward */
-      write_memory (sp, buffer, len);
-      sp += len;
-    }
-
-  return sp;
-}
-
-/* Push LEN bytes with data at BUFFER.  */
-
-CORE_ADDR
-push_bytes (CORE_ADDR sp, char *buffer, int len)
-{
-  if (INNER_THAN (1, 2))
-    {
-      /* stack grows downward */
-      sp -= len;
-      write_memory (sp, buffer, len);
-    }
-  else
-    {
-      /* stack grows upward */
-      write_memory (sp, buffer, len);
-      sp += len;
-    }
-
-  return sp;
-}
-
 /* Create a value for an array by allocating space in the inferior, copying
    the data into that space, and then setting up an array value.
 
@@ -1087,7 +1039,7 @@ value_string (char *ptr, int len)
      copy LEN bytes from PTR in gdb to that address in the inferior. */
 
   addr = allocate_space_in_inferior (len);
-  write_memory (addr, ptr, len);
+  write_memory (addr, (gdb_byte *) ptr, len);
 
   val = value_at_lazy (stringtype, addr);
   return (val);
@@ -1364,7 +1316,7 @@ search_struct_field (char *name, struct value *arg1, int offset,
 
 void
 find_rt_vbase_offset (struct type *type, struct type *basetype,
-                     const bfd_byte *valaddr, int offset, int *boffset_p,
+                     const gdb_byte *valaddr, int offset, int *boffset_p,
                      int *skip_p)
 {
   int boffset;                 /* offset of virtual base */
@@ -1520,7 +1472,7 @@ search_struct_method (char *name, struct value **arg1p,
          else
            {
              struct type *baseclass = check_typedef (TYPE_BASECLASS (type, i));
-             const bfd_byte *base_valaddr;
+             const gdb_byte *base_valaddr;
 
              /* The virtual base class pointer might have been clobbered by the
                 user program. Make sure that it still points to a valid memory
@@ -1528,7 +1480,7 @@ search_struct_method (char *name, struct value **arg1p,
 
              if (offset < 0 || offset >= TYPE_LENGTH (type))
                {
-                 bfd_byte *tmp = alloca (TYPE_LENGTH (baseclass));
+                 gdb_byte *tmp = alloca (TYPE_LENGTH (baseclass));
                  if (target_read_memory (VALUE_ADDRESS (*arg1p)
                                          + value_offset (*arg1p) + offset,
                                          tmp, TYPE_LENGTH (baseclass)) != 0)
This page took 0.040806 seconds and 4 git commands to generate.