diff options
author | Jim Blandy <jimb@codesourcery.com> | 2004-09-14 03:01:48 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2004-09-14 03:01:48 +0000 |
commit | 3fc11f7bb74fceb6dd3f7b1d1743816f2b24a392 (patch) | |
tree | 85ebbd6f528a570e5779b994b33f4a16f298c382 /gdb/valops.c | |
parent | 8430886c586682ee6713380adb66513c5b137aaa (diff) | |
download | gdb-3fc11f7bb74fceb6dd3f7b1d1743816f2b24a392.tar.gz |
* 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.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 6e825ac382f..575c9a335ea 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -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)); |