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, 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?

Or you could define a hook that runs a user-defined command when the
architecture changes.  Then your script could define a command that
sets up your variables, and have GDB run that command when the
architecture is known.  We'd have to think about the best time to run
the hook, but I'm sure something reasonable could be worked out.


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