From: Tom Tromey Date: Fri, 7 Aug 2020 16:26:45 +0000 (-0600) Subject: Return event_ptid from ravenscar_thread_target::wait X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=550ab58d6eee9897c7f125d3a73cfef187f213b8;p=binutils-gdb.git Return event_ptid from ravenscar_thread_target::wait ravenscar_thread_target::wait should return the event ptid from the wrapped "wait" call in the situation where returning the Ravenscar thread ptid is not appropriate. This probably does not really make a difference in practice, but it seemed like a reasonable cleanup. gdb/ChangeLog 2020-08-07 Tom Tromey * ravenscar-thread.c (ravenscar_thread_target::wait): Return event_ptid. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d1f70583884..702d827a955 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-08-07 Tom Tromey + + * ravenscar-thread.c (ravenscar_thread_target::wait): Return + event_ptid. + 2020-08-07 Tom Tromey * ravenscar-thread.c (ravenscar_thread_target::wait): Check diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index 47001de42d3..b89b5f62e5a 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -361,7 +361,7 @@ ravenscar_thread_target::wait (ptid_t ptid, this->update_thread_list (); return this->add_active_thread ()->ptid; } - return m_base_ptid; + return event_ptid; } /* Add the thread associated to the given TASK to the thread list