aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb-demangle.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2013-12-19 20:06:46 +0400
committerJoel Brobecker <brobecker@adacore.com>2014-01-07 08:17:39 +0400
commit71855601a553755743aff19a36c53c62f3d63270 (patch)
tree88d0a4521214f0a1ee9cdd92fd28b75241499cb3 /gdb/gdb-demangle.h
parent4eb27a304c5943962ba1afa90b6eaa6eb6b25a74 (diff)
downloadgdb-71855601a553755743aff19a36c53c62f3d63270.zip
gdb-71855601a553755743aff19a36c53c62f3d63270.tar.gz
gdb-71855601a553755743aff19a36c53c62f3d63270.tar.bz2
Extract string-printing out of ada_val_print_array
This patch creates a new function called "ada_val_print_string" whose code is directly extracted out of ada_val_print_array. The extracted code is then replaced by a call to this new function, followed by a "return". The return avoids the need for an "else" branch, with the associated block nesting. The latter is not really terrible in this case, but it seems more readable this way. gdb/ChangeLog: * ada-valprint.c (ada_val_print_string): New function, extracted from ada_val_print_array. (ada_val_print_array): Replace extracted code by call to ada_val_print_string followed by a return. Move "else" branch to the function's top block.
Diffstat (limited to 'gdb/gdb-demangle.h')
0 files changed, 0 insertions, 0 deletions