]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Return event_ptid from ravenscar_thread_target::wait
authorTom Tromey <tromey@adacore.com>
Fri, 7 Aug 2020 16:26:45 +0000 (10:26 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 7 Aug 2020 16:26:45 +0000 (10:26 -0600)
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  <tromey@adacore.com>

* ravenscar-thread.c (ravenscar_thread_target::wait): Return
event_ptid.

gdb/ChangeLog
gdb/ravenscar-thread.c

index d1f705838849cc6e2b9a0f5babe916187b32f5a2..702d827a955bd95e24005a3daca088871c3295f9 100644 (file)
@@ -1,3 +1,8 @@
+2020-08-07  Tom Tromey  <tromey@adacore.com>
+
+       * ravenscar-thread.c (ravenscar_thread_target::wait): Return
+       event_ptid.
+
 2020-08-07  Tom Tromey  <tromey@adacore.com>
 
        * ravenscar-thread.c (ravenscar_thread_target::wait): Check
index 47001de42d39eab4566679fc8ec06dc5b47aacb8..b89b5f62e5aa9996864883f7e239ab74c230b7c5 100644 (file)
@@ -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