This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Alternate approach to keeping convenience variables


On 1/4/06, Andrew STUBBS <andrew.stubbs@st.com> wrote:
> Perhaps you could modify copy_type_recursive such that it creates a
> cleanup chain specific to the internal variable. Then call do cleanups
> in set_internal_var.
>
> Might be tricky with shared type copies though. Just a thought.

Exactly.

You can keep throwing complexity into the code to deal with this stuff
until it buries you.  And it'll never be a full solution.  Or it'll be
complete until someone wants to add some perfectly reasonable feature
(just as is happening with "let's preserve the values of convenience
variables across symfile loads" right now).  At some point, we have to
take a step back and think about a complete solution.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]