This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] varobj deletion after the binary has changed
- From: Daniel Jacobowitz <drow at false dot org>
- To: Denis PILAT <denis dot pilat at st dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Tue, 23 Jan 2007 07:44:57 -0500
- Subject: Re: [RFC] varobj deletion after the binary has changed
- References: <45B60056.6030704@st.com>
On Tue, Jan 23, 2007 at 01:32:22PM +0100, Denis PILAT wrote:
> Hi,
>
> We have a bug in one of our gdb target, when the binary changed while
> beeing debugged it appears that some of our varobj refers to invalid
> symbols or type.
>
> I propose a patch that delete all varobj when symbols are reloaded. May
> be there is a better place to do that but I think we must do that
> somewhere, don't you ?
The right thing to do is probably to figure out where the
invalid references come from and fix them - probably by re-evaluating
expressions at the next -var-update. Deleting things behind the front
end's back is a bad policy.
--
Daniel Jacobowitz
CodeSourcery