mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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.
This commit is contained in:
@@ -73,6 +73,9 @@ struct thread_control_state
|
||||
CORE_ADDR step_range_start; /* Inclusive */
|
||||
CORE_ADDR step_range_end; /* Exclusive */
|
||||
|
||||
/* Function the thread was in as of last it started stepping. */
|
||||
struct symbol *step_start_function;
|
||||
|
||||
/* If GDB issues a target step request, and this is nonzero, the
|
||||
target should single-step this thread once, and then continue
|
||||
single-stepping it without GDB core involvement as long as the
|
||||
|
||||
Reference in New Issue
Block a user