aboutsummaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2013-12-19 20:19:45 +0400
committerJoel Brobecker <brobecker@adacore.com>2014-01-07 08:17:40 +0400
commit4fbf5aa5f4c44b9bb56faee74c91bbb69829264f (patch)
tree9b09c8eddb9035307e008b0fb59b63f138c20569 /gdb/inflow.c
parent71855601a553755743aff19a36c53c62f3d63270 (diff)
downloadgdb-4fbf5aa5f4c44b9bb56faee74c91bbb69829264f.zip
gdb-4fbf5aa5f4c44b9bb56faee74c91bbb69829264f.tar.gz
gdb-4fbf5aa5f4c44b9bb56faee74c91bbb69829264f.tar.bz2
ada_print_floating: Remove use of statically sized buffer.
ada_print_floating declares a char buffer with a size that we're hoping to always be large enough to hold any string representation of a float value. But that's not really necessary, and also forces us to create a small wrapper (ui_memcpy) to perform the extraction from a temporary stream into this buffer. This patches fixes both issues by relying on ui_file_xstrdup. This forces us to make a few adjustments that are minor in nature, as we now need to defer the cleanup to the end of the function. gdb/ChangeLog: * ada-valprint.c (ui_memcpy): Delete. (ada_print_floating): Update documentation. Add empty line between between function documentation and implementation. Delete variable "buffer". Use ui_file_xstrdup in place of ui_file_put. Minor adjustments following this change.
Diffstat (limited to 'gdb/inflow.c')
0 files changed, 0 insertions, 0 deletions