[PATCH 0/7] Split c_val_print

Simon Marchi
2015-07-08T21:08:18Z

I think that c_val_print deserves to be split up in smaller, more
manageable chunks. This series does that, by simply factoring out each
case of the big switch. In some cases, a bit of modifications were
necessary where fallthrough between cases or goto were used, but
otherwise the code stays the same.

Simon Marchi (7):
Remove unneeded variable assignment
Factor out print_unpacked_pointer from c_val_print
Factor out array printing code from c_val_print
Factor out pointer printing code from c_val_print
Factor out struct and union printing code from c_val_print
Factor out int printing code from c_val_print
Factor out memberptr printing code from c_val_print

gdb/c-valprint.c | 612 ++++++++++++++++++++++++++++++++-----------------------
1 file changed, 352 insertions(+), 260 deletions(-)

--
2.1.4