]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
infrun.c:handle_inferior_event: Remove some more dead code.
authorPedro Alves <palves@redhat.com>
Mon, 28 Oct 2013 16:39:05 +0000 (16:39 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 28 Oct 2013 16:39:05 +0000 (16:39 +0000)
commitf05e4c1115dec06d408394e2d9a529d1475f96ee
treef071a475c13747c83b4b63e29e66516936f3501d
parentca20d46296a700f493edaa05401b75b1759e78c8
infrun.c:handle_inferior_event: Remove some more dead code.

'ecs' is always memset before being passed to handle_inferior_event.
The stop func is only filled in later in the flow.  And since "Remove
dead sets/clears of ecs->random signal", nothing ever sets
ecs->random_signal before this part is reached either.

(Also tested with some added assertions in place.)

gdb/
2013-10-28  Pedro Alves  <palves@redhat.com>

* infrun.c (clear_stop_func): Delete.
(handle_inferior_event): Don't call clear_stop_func and don't
clear 'ecs->random_signal'.
gdb/ChangeLog
gdb/infrun.c