aboutsummaryrefslogtreecommitdiff
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
parentb39958adc83145dd56a50932dcc4af9b95f2ffca (diff)
downloadgdb-ade016526a150ee32c0641f784b7c471d472b3d1.zip
gdb-ade016526a150ee32c0641f784b7c471d472b3d1.tar.gz
gdb-ade016526a150ee32c0641f784b7c471d472b3d1.tar.bz2
* values.c (set_internalvar): Set modifiable flag of newval.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/values.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9e706d8..7d19986 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+Wed Apr 12 16:36:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
+
+ * values.c (set_internalvar): Set modifiable flag of newval.
+
Wed Apr 12 14:34:31 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
* xcoffread.c: Call complain() rather than error() or printing a
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