diff options
author | Pedro Alves <palves@redhat.com> | 2013-10-28 16:39:06 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-10-28 16:46:23 +0000 |
commit | fcf3daefe6e48a4f3b802f0adad2a16639cef126 (patch) | |
tree | 3d066b26fb6496fd6e237ba2697f5ed4d28c915e /gdb/source.h | |
parent | c447ac0bfb51568d4c239dd11e016dc0281ee358 (diff) | |
download | gdb-fcf3daefe6e48a4f3b802f0adad2a16639cef126.zip gdb-fcf3daefe6e48a4f3b802f0adad2a16639cef126.tar.gz gdb-fcf3daefe6e48a4f3b802f0adad2a16639cef126.tar.bz2 |
infrun.c:handle_inferior_event: Move process_event_stop_test goto label.
We only ever call "goto process_event_stop_test;" right after checking
that ecs->random_signal is clear. The code at the
process_event_stop_test label looks like:
/* For the program's own signals, act according to
the signal handling tables. */
if (ecs->random_signal)
{
... random signal handling ...
return;
}
else
{
... the stop tests that actually matter for the goto callers.
}
So this moves the label into the else branch. It'll make converting
process_event_stop_test into a function a bit clearer.
gdb/
2013-10-28 Pedro Alves <palves@redhat.com>
* infrun.c (handle_inferior_event): Move process_event_stop_test
goto label to the else branch of the ecs->random_signal check,
along with FRAME and GDBARCH re-fetching.
Diffstat (limited to 'gdb/source.h')
0 files changed, 0 insertions, 0 deletions