Re: Value reference counting

Daniel Jacobowitz
2009-07-20T13:27:04Z

On Mon, Jul 20, 2009 at 10:22:19AM -0300, Thiago Jung Bauermann wrote:
> Watchpoints hold their own references to values. Other than that, IMHO if
> watchpoint code causes values to be leaked, that is a bug, not a special
> feature which should be respected... WDYT?

Confused by your question :-)

The way free_all_values works is that it's only run after a command.
For instance, a breakpoint command, or a user-typed command. It's not
run every time we stop the target and do some thinking if the thinking
is not in the form of a command. So it's possible to get values
created that don't get cleaned up for a while.

Leaked was probably not the right word, just not GC'd promptly.

--
Daniel Jacobowitz
CodeSourcery