aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-04-13 00:36:37 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-04-13 00:36:37 +0000
commitade016526a150ee32c0641f784b7c471d472b3d1 (patch)
tree0c1c9bdc2f8a8f864888425ad97a02700057d264 /gdb/values.c
parentb39958adc83145dd56a50932dcc4af9b95f2ffca (diff)
downloadgdb-ade016526a150ee32c0641f784b7c471d472b3d1.zip
gdb-ade016526a150ee32c0641f784b7c471d472b3d1.tar.gz
gdb-ade016526a150ee32c0641f784b7c471d472b3d1.tar.bz2
* values.c (set_internalvar): Set modifiable flag of newval.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 788222e..accb0d5 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -485,6 +485,7 @@ set_internalvar (var, val)
#endif
newval = value_copy (val);
+ newval->modifiable = 1;
/* Force the value to be fetched from the target now, to avoid problems
later when this internalvar is referenced and the target is gone or