Per-process displaced stepping queue.
authorPedro Alves <palves@redhat.com>
Wed, 24 Feb 2010 20:47:22 +0000 (20:47 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 24 Feb 2010 20:47:22 +0000 (20:47 +0000)
commitfc1cf338c43f4f84624cd0f9026e1be8561b2c42
tree85ae793f65d4098955e9ad5c1e6bd3c2a98d5abe
parent4a54abbbe95796323e02bd15f9310b5b3d176d9d
Per-process displaced stepping queue.

* infrun.c (displaced_step_ptid, displaced_step_request_queue)
(displaced_step_gdbarch, displaced_step_closure,
(displaced_step_original, displaced_step_copy): Move globals to
this...
(struct displaced_step_inferior_state): ... new structure.
(displaced_step_inferior_states): New global.
(get_displaced_stepping_state, add_displaced_stepping_state)
(remove_displaced_stepping_state, infrun_inferior_exit): New
functions.
(displaced_step_clear): Add displaced_step_inferior_state
parameter, and adjust to handle it.
(displaced_step_clear_cleanup): Parameter is now a
displaced_step_inferior_state.  Adjust.
(displaced_step_prepare): Adjust.
(displaced_step_fixup, displaced_step_fixup)
(infrun_thread_ptid_changed, resume): Adjust.
(init_wait_for_inferior): Don't call displaced_step_clear.
(infrun_thread_stop_requested): Rewrite.
(_initialize_infrun): Install infrun_inferior_exit as
inferior_exit observer.
gdb/ChangeLog
gdb/infrun.c