This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Alternate approach to keeping convenience variables
- From: Jim Blandy <jimb at red-bean dot com>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>
- Cc: Daniel Jacobowitz <drow at false dot org>, gdb-patches at sources dot redhat dot com
- Date: Wed, 4 Jan 2006 10:37:06 -0800
- Subject: Re: [RFC] Alternate approach to keeping convenience variables
- References: <4381DC75.80800@st.com> <8f2776cb0511212138g2adef40cr1632365c00e3bebc@mail.gmail.com> <43835114.5060401@st.com> <20051209205923.GA21331@nevyn.them.org> <43BBBBC3.1010201@st.com> <8f2776cb0601040900t6e821db5v96a2cd0ef35c53f0@mail.gmail.com> <43BC03FB.9050209@st.com>
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.