+2021-01-20 Joel Sherrill <joel@rtems.org>
+
+ PR gdb/27219
+ * remote.c (struct remote_thread_info) <resume_state>: Rename
+ to...
+ <get_resume_state>: ... this.
+ (remote_target::resume): Adjust.
+ (remote_target::commit_resume): Adjust.
+ (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
+
2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
Tom Tromey <tom@tromey.com>
CORE_ADDR watch_data_address = 0;
/* Get the thread's resume state. */
- enum resume_state resume_state () const
+ enum resume_state get_resume_state () const
{
return m_resume_state;
}
/* We don't expect the core to ask to resume an already resumed (from
its point of view) thread. */
- gdb_assert (remote_thr->resume_state () == resume_state::NOT_RESUMED);
+ gdb_assert (remote_thr->get_resume_state () == resume_state::NOT_RESUMED);
remote_thr->set_resumed_pending_vcont (step, siggnal);
return;
/* If a thread of a process is not meant to be resumed, then we
can't wildcard that process. */
- if (priv->resume_state () == resume_state::NOT_RESUMED)
+ if (priv->get_resume_state () == resume_state::NOT_RESUMED)
{
get_remote_inferior (tp->inf)->may_wildcard_vcont = false;
/* If the thread was previously vCont-resumed, no need to send a specific
action for it. If we didn't receive a resume request for it, don't
send an action for it either. */
- if (remote_thr->resume_state () != resume_state::RESUMED_PENDING_VCONT)
+ if (remote_thr->get_resume_state () != resume_state::RESUMED_PENDING_VCONT)
continue;
gdb_assert (!thread_is_in_step_over_chain (tp));
{
remote_thread_info *remote_thr = get_remote_thread_info (thr);
- if (remote_thr->resume_state () != resume_state::RESUMED)
+ if (remote_thr->get_resume_state () != resume_state::RESUMED)
continue;
if (first_resumed_thread == nullptr)