diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-03-07 13:46:08 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-03-07 16:47:46 -0500 |
commit | a243d6ae94bdc69081e7f8c3a0f55465a8077e28 (patch) | |
tree | 74e470200e6695822f1668073a9100581674ebe8 /gdb/remote.c | |
parent | 0815e83131004e620c789b7f40d953ec1f8c5428 (diff) | |
download | binutils-users/simark/ptid-in-fetch-store-regs.zip binutils-users/simark/ptid-in-fetch-store-regs.tar.gz binutils-users/simark/ptid-in-fetch-store-regs.tar.bz2 |
Pass ptid to to_prepare_to_storeusers/simark/ptid-in-fetch-store-regs
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.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index b7ffa4a..e4c4717 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -106,7 +106,8 @@ static int getpkt_or_notif_sane (char **buf, long *sizeof_buf, static void remote_files_info (struct target_ops *ignore); static void remote_prepare_to_store (struct target_ops *self, - struct regcache *regcache); + struct regcache *regcache, + ptid_t ptid); static void remote_open_1 (const char *, int, struct target_ops *, int extended_p); @@ -7755,7 +7756,8 @@ remote_fetch_registers (struct target_ops *ops, struct regcache *regcache, first. */ static void -remote_prepare_to_store (struct target_ops *self, struct regcache *regcache) +remote_prepare_to_store (struct target_ops *self, struct regcache *regcache, + ptid_t ptid) { struct remote_arch_state *rsa = get_remote_arch_state (); int i; |