aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-04 16:43:41 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-04 16:43:41 +0000
commit4abc83b9954182ba346df3447935248e73ac93ce (patch)
treef944d6bf50de2d9b7e63dd51af6705af08fbda11 /gdb
parent965a5c32b7ba24badd484aec51b5c3b387ba3fb3 (diff)
downloadgdb-4abc83b9954182ba346df3447935248e73ac93ce.zip
gdb-4abc83b9954182ba346df3447935248e73ac93ce.tar.gz
gdb-4abc83b9954182ba346df3447935248e73ac93ce.tar.bz2
Mon Oct 4 11:02:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* values.c (record_latest_value): Fetch lazy values and set VALUE_LVAL to not_lval. Sun Oct 3 15:54:51 1993 Stan Shebs (shebs@rtl.cygnus.com) * objfiles.h (objfile): New slot sym_stab_info, use by most stab-reading formats.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/values.c8
2 files changed, 14 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a0a0727..ab315f3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,6 +1,11 @@
+Mon Oct 4 11:02:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+
+ * values.c (record_latest_value): Fetch lazy values and set VALUE_LVAL
+ to not_lval.
+
Sun Oct 3 15:54:51 1993 Stan Shebs (shebs@rtl.cygnus.com)
- * objfiles.h (objfile): New slot sym_stab_info, use by all
+ * objfiles.h (objfile): New slot sym_stab_info, use by most
stab-reading formats.
* gdb-stabs.h (DBX_SYMFILE_INFO): Access sym_stab_info instead of
sym_private.
diff --git a/gdb/values.c b/gdb/values.c
index 8890c8e..f8a059e 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -255,6 +255,14 @@ record_latest_value (val)
}
value_history_chain->values[i] = val;
+
+ /* We don't want this value to have anything to do with the inferior anymore.
+ In particular, "set $1 = 50" should not affect the variable from which
+ the value was taken, and fast watchpoints should be able to assume that
+ a value on the value history never changes. */
+ if (VALUE_LAZY (val))
+ value_fetch_lazy (val);
+ VALUE_LVAL (val) = not_lval;
release_value (val);
/* Now we regard value_history_count as origin-one