Don't write to inferior_ptid in aix-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:18:08 +0000 (23:18 +0100)
commit6dbdab44e57d21c895ef60246d0e7aadb3c076a4
tree371585b84b8d1ed8ff6aa7d08b0fe6d9a51da5ef
parent2da4b788f7a80ed9589d0e8856584e9dfa2813ff
Don't write to inferior_ptid in aix-thread.c

There are other writes in the file, but they seem more harmless.  This
one is changing the current thread permanently.

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

* aix-thread.c (pd_update): Use switch_to_thread.
gdb/ChangeLog
gdb/aix-thread.c