public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Split c_val_print
@ 2015-07-08 21:08 Simon Marchi
  2015-07-08 21:08 ` [PATCH 1/7] Remove unneeded variable assignment Simon Marchi
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Simon Marchi @ 2015-07-08 21:08 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-07-09 23:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-08 21:08 [PATCH 0/7] Split c_val_print Simon Marchi
2015-07-08 21:08 ` [PATCH 1/7] Remove unneeded variable assignment Simon Marchi
2015-07-08 21:08 ` [PATCH 4/7] Factor out pointer printing code from c_val_print Simon Marchi
2015-07-09 15:32   ` Simon Marchi
2015-07-08 21:08 ` [PATCH 2/7] Factor out print_unpacked_pointer " Simon Marchi
2015-07-09 15:30   ` Simon Marchi
2015-07-08 21:08 ` [PATCH 3/7] Factor out array printing code " Simon Marchi
2015-07-08 21:08 ` [PATCH 5/7] Factor out struct and union " Simon Marchi
2015-07-08 21:08 ` [PATCH 7/7] Factor out memberptr " Simon Marchi
2015-07-08 21:08 ` [PATCH 6/7] Factor out int " Simon Marchi
2015-07-09 10:53 ` [PATCH 0/7] Split c_val_print Pedro Alves
2015-07-09 15:28   ` Simon Marchi
2015-07-09 15:30     ` Pedro Alves
2015-07-09 23:42 ` Sergio Durigan Junior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).