mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
* values.c (set_internalvar): Force evaluation of lazy values.
Bug reported by RMS.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Mon May 4 22:26:59 1992 John Gilmore (gnu at cygnus.com)
|
||||||
|
|
||||||
|
* values.c (set_internalvar): Force evaluation of lazy values.
|
||||||
|
Bug reported by RMS.
|
||||||
|
|
||||||
Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
|
Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
|
||||||
|
|
||||||
* Makefile.in (VERSION): Bump to 4.5.2.
|
* Makefile.in (VERSION): Bump to 4.5.2.
|
||||||
|
@ -453,6 +453,11 @@ set_internalvar (var, val)
|
|||||||
|
|
||||||
free ((PTR)var->value);
|
free ((PTR)var->value);
|
||||||
var->value = value_copy (val);
|
var->value = value_copy (val);
|
||||||
|
/* 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
|
||||||
|
has changed. */
|
||||||
|
if (VALUE_LAZY (var->value))
|
||||||
|
value_fetch_lazy (var->value);
|
||||||
release_value (var->value);
|
release_value (var->value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user