This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: -var-update using formatted value
> I think you are referring to the code that uses "%.9g" The format "%#.9g"
> could be used instead... But trailing zeros will not be removed at all, so
> 1.0 will be 1.000000000 instead of 1 but this will also be true for numbers
> like 1.11 which would not be 1.110000000 That is probably not a good thing
If it's important, you could presumably print to a string first, do a regexp
match and then add a decimal point if the number did not have one.
--
Nick http://www.inet.net.nz/~nickrob