From ade016526a150ee32c0641f784b7c471d472b3d1 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 13 Apr 1995 00:36:37 +0000 Subject: [PATCH] * values.c (set_internalvar): Set modifiable flag of newval. --- gdb/ChangeLog | 4 ++++ gdb/values.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9e706d83e2e..7d1998607dc 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 * xcoffread.c: Call complain() rather than error() or printing a diff --git a/gdb/values.c b/gdb/values.c index 788222e528c..accb0d59580 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 -- 2.30.2