Don't write to inferior_ptid in tracefile-tfile.c
authorPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 20:28:23 +0000 (21:28 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 22:06:57 +0000 (23:06 +0100)
commit087e161b3cd9a8626dc05ce1bdb8dfaf353a71b1
tree3b10111c34758633b1742444a93c1102503bd842
parent7fb43e53d57d5d1c47fad8a2dece7b90d20b3fd3
Don't write to inferior_ptid in tracefile-tfile.c

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

* tracefile-tfile.c (tfile_target_open): Don't write to
inferior_ptid directly, instead switch to added thread.
(tfile_target::close): Use switch_to_no_thread instead of writing
to inferior_ptid directly.
gdb/ChangeLog
gdb/tracefile-tfile.c