Make step_start_function be per thread
authorPedro Alves <palves@redhat.com>
Tue, 24 Mar 2015 17:50:30 +0000 (17:50 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 24 Mar 2015 17:50:30 +0000 (17:50 +0000)
commit885eeb5b8ea021cc79ffebe8ec40122229c572f0
tree4c383d452a8828bda3a39c5d5e7f2ae7bf08790a
parent3333f03ae1b02b321717b4bc4887201ed4fc6a26
Make step_start_function be per thread

I noticed that step_start_function is still a global, while it
obviously should be a per-thread field.

gdb/ChangeLog:
2015-03-24  Pedro Alves  <palves@redhat.com>

* infrun.c (step_start_function): Delete and ...
* gdbthread.h (struct thread_control_state) <step_start_function>:
... now a field here.
* infrun.c (clear_proceed_status_thread): Clear the thread's
step_start_function.
(proceed, process_event_stop_test, print_stop_event): Adjust.
gdb/ChangeLog
gdb/gdbthread.h
gdb/infrun.c