Fix segv when referencing a value added to history after a Guile garbage collect.
authorDoug Evans <xdje42@gmail.com>
Thu, 13 Mar 2014 16:24:19 +0000 (09:24 -0700)
committerDoug Evans <xdje42@gmail.com>
Thu, 13 Mar 2014 16:24:19 +0000 (09:24 -0700)
commit350e1a768cca6deab7aeca8adcff9561faeb1f35
tree0516a81e3241b782e18e12a726da4054c1b7d2f2
parentc307e84195f4cc97bf73fcefcb947f73a17b1141
Fix segv when referencing a value added to history after a Guile garbage collect.

* value.c (record_latest_value): Call release_value_or_incref
instead of release_value.

testsuite/
* gdb.guile/scm-value.exp (test_value_in_inferior): Verify value added
to history survives a gc.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.guile/scm-value.exp
gdb/value.c