summaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-09-02 13:48:16 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-09-02 13:48:16 +0000
commit5e711e7f505fc558a2578c6bb2c2681d64abee80 (patch)
tree3b86251ca46205e6e478540de0053a1272ea0eeb /gdb/values.c
parent218f9f03b889ab048141eac1ef6125adef22afc8 (diff)
downloadbinutils-gdb-5e711e7f505fc558a2578c6bb2c2681d64abee80.tar.gz
* configure.in: Explicitly `exit 0' for broken shells.
* configure: Rebuilt. * symtab.c (list_symbols): Add missing blank after `<function, no debug info>' output. * valops.c (value_assign): Handle truncation when assigning to bitfields. Use value_copy to construct the return value from toval. * values.c (value_copy): Copy VALUE_FRAME and VALUE_OPTIMIZED_OUT.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 9a2301e0894..33db594dfc5 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -228,8 +228,10 @@ value_copy (arg)
VALUE_OFFSET (val) = VALUE_OFFSET (arg);
VALUE_BITPOS (val) = VALUE_BITPOS (arg);
VALUE_BITSIZE (val) = VALUE_BITSIZE (arg);
+ VALUE_FRAME (val) = VALUE_FRAME (arg);
VALUE_REGNO (val) = VALUE_REGNO (arg);
VALUE_LAZY (val) = VALUE_LAZY (arg);
+ VALUE_OPTIMIZED_OUT (val) = VALUE_OPTIMIZED_OUT (arg);
val->modifiable = arg->modifiable;
if (!VALUE_LAZY (val))
{