This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: -var-update using formatted value
> > Anyway, I withdraw my objection to your patch, if the patch (or similar) in the
> > thread I mentioned (http://sourceware.org/ml/gdb-patches/2006-05/msg00008.html)
> > is also approved. So there appears to be some consensus here.
>
> FWIW, I agree that the patch in
> http://sourceware.org/ml/gdb-patches/2006-05/msg00008.html
> is good, as it removes the need to do -var-evaluate-expression
> or -var-update after setting variable's format.
This is great.
However, instead of Vladimir's patch, can we instead only use the natural format?
A patch similar to what I suggested in: http://sourceware.org/ml/gdb/2008-01/msg00072.html
Maybe renaming the print_value field to something more descriptive?
This should also fix the var-update problem when floats and strings only change
in the natural format (please refer to the sub-thread http://sourceware.org/ml/gdb/2008-01/msg00175.html)
In my mind, this will revert to what var-update was doing in GDB 6.5 (not sure about 6.6)
with the added benefit of fixing the string problem that Nick mentioned ("GNU" vs "GDB")
Thanks a lot!
Marc