diff options
author | Tom Tromey <tromey@adacore.com> | 2020-08-07 10:26:45 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-08-07 10:26:45 -0600 |
commit | 550ab58d6eee9897c7f125d3a73cfef187f213b8 (patch) | |
tree | b76ba8bd4cd962a5190d60530ca62ab32a4ed917 | |
parent | e95465793dedc0a75406c159ad3180d55cd4a94d (diff) | |
download | gdb-550ab58d6eee9897c7f125d3a73cfef187f213b8.zip gdb-550ab58d6eee9897c7f125d3a73cfef187f213b8.tar.gz gdb-550ab58d6eee9897c7f125d3a73cfef187f213b8.tar.bz2 |
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 <tromey@adacore.com>
* ravenscar-thread.c (ravenscar_thread_target::wait): Return
event_ptid.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ravenscar-thread.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d1f7058..702d827 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 runtime_initialized. diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index 47001de..b89b5f6 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 |