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: [PATCH] Fixup convenience variables on endian switch


On 11/17/05, Daniel Jacobowitz <drow@false.org> wrote:
> On Thu, Nov 17, 2005 at 10:58:51AM -0800, Jim Blandy wrote:
> > On 11/17/05, Andrew STUBBS <andrew.stubbs@st.com> wrote:
> > > The problem I am actually trying to solve is that we have addresses and
> > > such set up by a script that is sourced before the endian of the target
> > > they will be used with is known.
> >
> > So you only really need to preserve convenience variables whose types
> > are builtin types, and don't go away when symbol tables are reloaded.
> > Wouldn't it be simpler just to have clear_internalvars only clear
> > variables whose types belong to objfiles?
>
> I think you've switched patches - this is about updating variables on
> an endianness switch, not clearing them when we reload.

No, it's popping up a level to figure out how to best address the
original problem.

In light of your stories about losing values, and given Andrew's
description of the troubles that motivated him, I'd agree that simply
always preserving the values of convenience variables that we know how
to preserve is the way to go.


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