[PATCH 0/5] cleanup infrun.c:handle_inferior_event some more.

Pedro Alves palves@redhat.com
Wed Oct 23 20:07:00 GMT 2013


Here are some more cleanups to handle_inferior_event, while I'm
looking at it.  It ends up breaking handle_inferior_event in two
halves plus one smaller piece.  handle_inferior_event ends up a bit
over half of its current size (~2100 -> ~1200 lines), which I think
everyone will agree is better than the status quo.

Tested on x86_64 Fedora 17.

Pedro Alves (5):
  infrun.c:handle_inferior_event: Remove some more dead code.
  infrun.c:handle_inferior_event: Put all ecs->random_signal tests
    together.
  infrun.c:handle_inferior_event: Move process_event_stop_test goto
    label.
  infrun.c:handle_inferior_event: Make process_event_stop_test label a
    function.
  infrun.c:process_event_stop_test: Reindent.

 gdb/infrun.c | 585 ++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 297 insertions(+), 288 deletions(-)

-- 
1.7.11.7



More information about the Gdb-patches mailing list