[PATCH] keep-variable command
Andrew STUBBS
andrew.stubbs@st.com
Wed Nov 16 15:54:00 GMT 2005
Hi,
This patch adds a command 'keep-variable'. The command takes one single
parameter - a convenience variable.
This variable is then protected from being deleted by the symbol-file
command. In order to achieve this it must patch up the type information
after the symbol table has changed. If the type cannot be fixed up then
a warning is given and the value is lost. Lazy fixup means that this
only happens if the variable is actually accessed.
If the keep-variable is never used then variables work exactly as before.
I feel certain that there is something somebody will not like about this
implementation, but I hope we can sort it out.
The patch requires that my endian fixup patch has been applied first.
The context in the patch assumes the init-if-undefined has been applied
first, although the patch is not actually dependent.
Thanks
Andrew Stubbs
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: keepvariable.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20051116/a54689c0/attachment.ksh>
More information about the Gdb-patches
mailing list