spu: Use ptid from regcache instead of inferior_ptid
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 20 Mar 2017 22:23:47 +0000 (18:23 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 20 Mar 2017 22:23:47 +0000 (18:23 -0400)
commit639a9038c9f4fc50b6a57c18fe84db4559367a96
treea3e0f539a8b76636082c1981a720d8078bb1603a
parentbcc0c096d5b0f77482cdb3154acd2515a0ca832f
spu: Use ptid from regcache instead of inferior_ptid

The implementations of to_fetch_registers/to_store_registers in the spu
code use some functions that rely on inferior_ptid.  It's simpler for
now to set/restore inferior_ptid.

gdb/ChangeLog:

* spu-linux-nat.c (spu_fetch_inferior_registers,
spu_store_inferior_registers): Use ptid from regcache, set and
restore inferior_ptid.
* spu-multiarch.c (spu_fetch_registers, spu_store_registers):
Likewise.
gdb/ChangeLog
gdb/spu-linux-nat.c
gdb/spu-multiarch.c