diff options
author | Pedro Alves <palves@redhat.com> | 2014-03-27 18:43:59 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-05-29 18:16:06 +0100 |
commit | bdc36728eee582853ca53bb8b6012e8cc3b90eb7 (patch) | |
tree | f1f36eac5315abe758b71577b98e81bb8730f4f0 /gdb/exec.c | |
parent | 22bcd14b34126004346fa3226532dd2c1f3a9790 (diff) | |
download | gdb-bdc36728eee582853ca53bb8b6012e8cc3b90eb7.zip gdb-bdc36728eee582853ca53bb8b6012e8cc3b90eb7.tar.gz gdb-bdc36728eee582853ca53bb8b6012e8cc3b90eb7.tar.bz2 |
infrun.c: simplify "end stepping range" code a bit.
- all end_stepping_range callers also set stop_step.
- all places that set stop_step call end_stepping_range and
stop_waiting too.
IOW, all places where we handle "end stepping range" do:
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
stop_waiting (ecs);
Factor that out into end_stepping_range itself.
Tested on x86_64 Fedora 20.
gdb/
2014-05-29 Pedro Alves <palves@redhat.com>
* infrun.c (process_event_stop_test, handle_step_into_function)
(handle_step_into_function_backward): Adjust.
Don't set the even thread's stop_step and call stop_waiting before
calling end_stepping_range. Instead do that ...
(end_stepping_range): ... here. Take an ecs pointer parameter.
Diffstat (limited to 'gdb/exec.c')
0 files changed, 0 insertions, 0 deletions