diff options
author | Pedro Alves <palves@redhat.com> | 2020-06-18 21:28:22 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-06-18 23:06:03 +0100 |
commit | 7fb43e53d57d5d1c47fad8a2dece7b90d20b3fd3 (patch) | |
tree | a76e70ff466f281f09981344f451141e43635405 /gdb/tracefile-tfile.c | |
parent | 18493a005acc8fbccbee4a2b767334eaaf636dd2 (diff) | |
download | gdb-7fb43e53d57d5d1c47fad8a2dece7b90d20b3fd3.zip gdb-7fb43e53d57d5d1c47fad8a2dece7b90d20b3fd3.tar.gz gdb-7fb43e53d57d5d1c47fad8a2dece7b90d20b3fd3.tar.bz2 |
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.
Diffstat (limited to 'gdb/tracefile-tfile.c')
0 files changed, 0 insertions, 0 deletions