Don't write to inferior_ptid in ravenscar-thread.c
authorPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 20:28:36 +0000 (21:28 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 22:17:31 +0000 (23:17 +0100)
commit2da4b788f7a80ed9589d0e8856584e9dfa2813ff
treeec4446b2594fc3ac2f3a42a88e35567c856dee70
parent50838d1be72ddd30e0b5f081933482424ae5a6b0
Don't write to inferior_ptid in ravenscar-thread.c

gdb/ChangeLog:
2020-06-18  Pedro Alves  <palves@redhat.com>

* ravenscar-thread.c (ravenscar_thread_target): Update.
(ravenscar_thread_target::update_inferior_ptid): Rename to ...
(ravenscar_thread_target::add_active_thread): ... this.  Don't
set m_base_ptid here.  Update to avoid referencing inferior_ptid.
(ravenscar_thread_target::wait): Don't write to inferior_ptid.
gdb/ChangeLog
gdb/ravenscar-thread.c