Don't write to inferior_ptid in procfs.c
authorPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 20:28:22 +0000 (21:28 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 22:06:03 +0000 (23:06 +0100)
commit7fb43e53d57d5d1c47fad8a2dece7b90d20b3fd3
treea76e70ff466f281f09981344f451141e43635405
parent18493a005acc8fbccbee4a2b767334eaaf636dd2
Don't write to inferior_ptid in procfs.c

The inferior_ptid write in procfs_do_thread_registers should be
unnecessary because the target_fetch_registers method should (and
does) extract the ptid from the regcache.

Not tested.

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

* procfs.c (procfs_target::attach): Don't write to inferior_ptid.
(procfs_target::detach): Use switch_to_no_thread
instead of writing to inferior_ptid directly.
(do_attach): Change return type to void.  Switch to the added
thread.
(procfs_target::create_inferior): Switch to the added thread.
(procfs_do_thread_registers): Don't write to inferior_ptid.
gdb/ChangeLog
gdb/procfs.c
This page took 0.025579 seconds and 4 git commands to generate.