This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/7] Split c_val_print


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]