diff options
author | Pedro Alves <palves@redhat.com> | 2015-03-24 17:50:30 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-03-24 17:50:30 +0000 |
commit | 885eeb5b8ea021cc79ffebe8ec40122229c572f0 (patch) | |
tree | 4c383d452a8828bda3a39c5d5e7f2ae7bf08790a /gdb/gdbthread.h | |
parent | 3333f03ae1b02b321717b4bc4887201ed4fc6a26 (diff) | |
download | gdb-885eeb5b8ea021cc79ffebe8ec40122229c572f0.zip gdb-885eeb5b8ea021cc79ffebe8ec40122229c572f0.tar.gz gdb-885eeb5b8ea021cc79ffebe8ec40122229c572f0.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r-- | gdb/gdbthread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index e9ae47d..ce4f76f 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -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 |