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: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Jim Blandy <jimb at red-bean dot com>, gdb-patches at sources dot redhat dot com
- Date: Wed, 04 Jan 2006 12:12:51 +0000
- 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>
Hi, I'm back!
Thanks for this work. I do not follow exactly how it works (I suppose
that's the difference between somebody who knows GDB and somebody who
does not) but it does appear to solve the problem at hand.
One point though - why is it ok to leak the memory? This seems like bad
practice to me - I mean, types can be arbitrarily large and, even if
they are typically small, the variables may be rewritten many many times
(particularly by scripts with loops). Are you saying that they will be
actually leaked or just left for some sort of garbage collection?
Otherwise excellent - just what I need. I'll be very happy when this
goes in.
Thanks again
Andrew Stubbs