Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] MI: Free values when updating
@ 2007-01-23  7:45 Nick Roberts
  2007-01-23  7:55 ` Vladimir Prus
  0 siblings, 1 reply; 11+ messages in thread
From: Nick Roberts @ 2007-01-23  7:45 UTC (permalink / raw)
  To: gdb-patches


The recent changes to varobj.c have resulted in values computed with
-var-update not being freed automatically.  This makes computation longer and
progressively so as currently free_all_values doesn't always get called.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


2007-01-23  Nick Roberts  <nickrob@snap.net.nz>

	* varobj.c (install_new_value): Don't call release_value when
	updating.


*** varobj.c	16 Jan 2007 18:34:59 +1300	1.79
--- varobj.c	23 Jan 2007 18:26:57 +1300	
*************** install_new_value (struct varobj *var, s
*** 917,923 ****
    /* We are not interested in the address of references, and given
       that in C++ a reference is not rebindable, it cannot
       meaningfully change.  So, get hold of the real value.  */
!   if (value)
      {
        value = coerce_ref (value);
        release_value (value);
--- 917,923 ----
    /* We are not interested in the address of references, and given
       that in C++ a reference is not rebindable, it cannot
       meaningfully change.  So, get hold of the real value.  */
!   if (initial && value)
      {
        value = coerce_ref (value);
        release_value (value);


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-01-24  9:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-23  7:45 [PATCH] MI: Free values when updating Nick Roberts
2007-01-23  7:55 ` Vladimir Prus
2007-01-23  8:56   ` Nick Roberts
2007-01-23  9:15     ` Vladimir Prus
2007-01-23 11:02       ` Nick Roberts
2007-01-23 12:12         ` Daniel Jacobowitz
2007-01-23 21:19           ` Nick Roberts
2007-01-23 21:35             ` Vladimir Prus
2007-01-24  8:00         ` Vladimir Prus
2007-01-24  9:14           ` Nick Roberts
2007-01-24  9:21             ` Vladimir Prus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox