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
Le jeudi 25 janvier 2007 Ã 10:49 +1300, Nick Roberts a Ãcrit :
> > > And what kind of problems does it cause, for the record? I'd expect that
> > > attempt of evaluating such expressions will result in value being "",
> > > and in_scope="false". Do you get anything worse than that?
>
> It's a global variable so I don't think it will ever be reported as out
> of scope.
>
> > Yes we are, gdb crashes.
>
> This is a bug in GDB and how to deal with variable objects when restarting
> should be a separate issue. I see the same problem in a CVS snapshot of
> 6.2 vintage but not in GDB 6.3 from Fedora Core 5. So unless the problem
> disappeared in 6.3 and reasppeared later, which is unlikely, I think Fedora
> must have solved it with one of their patches. The problem is I don't know
> which one.
Just a shot in the dark: did you test with a memory checker like
valgrind? The fact that there's no crash doesn't mean that there's no
buggy memory access.
Fred.