]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Pass ptid to to_prepare_to_store users/simark/ptid-in-fetch-store-regs
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 7 Mar 2017 18:46:08 +0000 (13:46 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 7 Mar 2017 21:47:46 +0000 (16:47 -0500)
commita243d6ae94bdc69081e7f8c3a0f55465a8077e28
tree74e470200e6695822f1668073a9100581674ebe8
parent0815e83131004e620c789b7f40d953ec1f8c5428
Pass ptid to to_prepare_to_store

In the same vein as to_fetch_registers and to_store_registers, we can
update to_prepare_to_store to take the ptid of the thread whose register
we want to store as a parameter, rather than reading it from
inferior_ptid.

gdb/ChangeLog:

* target.h (struct target_ops) <to_prepare_to_store>: Add ptid_t
parameter.
(target_prepare_to_store): Likewise.
* target-delegates.c: Re-generate.
* inf-child.c (inf_child_prepare_to_store): Add ptid parameter.
* ppc-ravenscar-thread.c
(ppc_ravenscar_generic_prepare_to_store): Likewise.
* ravenscar-thread.c (ravenscar_prepare_to_store): Add ptid
parameter and use it instead of inferior_ptid.
* ravenscar-thread.h (struct ravenscar_arch_ops)
<to_prepare_to_store>: Add ptid parameter.
* record-btrace.c (record_btrace_prepare_to_store): Add ptid
parameter and use it instead of inferior_ptid.
* record-full.c (record_full_core_prepare_to_store): Add ptid
parameter.
* regcache.c (regcache_raw_write): Pass ptid to
target_prepare_to_store.
* remote-sim.c (gdbsim_prepare_to_store): Add ptid parameter.
* remote.c (remote_prepare_to_store): Add ptid parameter.
* sparc-ravenscar-thread.c (sparc_ravenscar_prepare_to_store):
Add ptid parameter.
12 files changed:
gdb/inf-child.c
gdb/ppc-ravenscar-thread.c
gdb/ravenscar-thread.c
gdb/ravenscar-thread.h
gdb/record-btrace.c
gdb/record-full.c
gdb/regcache.c
gdb/remote-sim.c
gdb/remote.c
gdb/sparc-ravenscar-thread.c
gdb/target-delegates.c
gdb/target.h