This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/7] Split c_val_print
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Wed, 8 Jul 2015 17:07:02 -0400
- Subject: [PATCH 0/7] Split c_val_print
- Authentication-results: sourceware.org; auth=none
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