* valops.c (value_assign): 'use_buffer' is initialized to zero,
authorJim Blandy <jimb@codesourcery.com>
Tue, 14 Sep 2004 03:01:48 +0000 (03:01 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 14 Sep 2004 03:01:48 +0000 (03:01 +0000)
and never assigned to.   Delete it, and the 'if (use_buffer)'
clauses.  Delete 'raw_buffer', since it is now unused.

gdb/ChangeLog
gdb/valops.c

index a832382457f7d53a2528418289b8e6ed9be5d8bc..234e379002877892c9492b1a2ed8d64f2cf3e8d7 100644 (file)
@@ -3,6 +3,10 @@
        * valops.c (value_assign): Move 'buffer' to the enclosing block,
        so that its storage isn't referenced after its lifetime ends.
 
+       * valops.c (value_assign): 'use_buffer' is initialized to zero,
+       and never assigned to.   Delete it, and the 'if (use_buffer)'
+       clauses.  Delete 'raw_buffer', since it is now unused.
+
 2004-09-13  Andrew Cagney  <cagney@gnu.org>
 
        * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
index 6e825ac382f44a1458b9a882ca0e9ec53137dbb6..575c9a335ea362ec976ef75c14fbe717d4408e8a 100644 (file)
@@ -525,8 +525,6 @@ value_assign (struct value *toval, struct value *fromval)
 {
   struct type *type;
   struct value *val;
-  char raw_buffer[MAX_REGISTER_SIZE];
-  int use_buffer = 0;
   struct frame_id old_frame;
 
   if (!toval->modifiable)
@@ -591,12 +589,6 @@ value_assign (struct value *toval, struct value *fromval)
            changed_addr = VALUE_ADDRESS (toval) + VALUE_OFFSET (toval);
            dest_buffer = buffer;
          }
-       else if (use_buffer)
-         {
-           changed_addr = VALUE_ADDRESS (toval) + VALUE_OFFSET (toval);
-           changed_len = use_buffer;
-           dest_buffer = raw_buffer;
-         }
        else
          {
            changed_addr = VALUE_ADDRESS (toval) + VALUE_OFFSET (toval);
@@ -683,8 +675,6 @@ value_assign (struct value *toval, struct value *fromval)
              modify_field (buffer + byte_offset,
                            value_as_long (fromval),
                            VALUE_BITPOS (toval), VALUE_BITSIZE (toval));
-           else if (use_buffer)
-             memcpy (buffer + VALUE_OFFSET (toval), raw_buffer, use_buffer);
            else
              memcpy (buffer + byte_offset, VALUE_CONTENTS (fromval),
                      TYPE_LENGTH (type));
This page took 0.030178 seconds and 4 git commands to generate.