Add asserts in target_fetch/store_registers
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 13 Mar 2017 22:51:38 +0000 (18:51 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 13 Mar 2017 22:51:38 +0000 (18:51 -0400)
commitc6386875ba57a806c896ba097afef525671de4a0
tree4288fecf466c8cde0d663a552830d77fd262d9bb
parentddaaf0fb8605fced72e84410fc7ac834e529eb53
Add asserts in target_fetch/store_registers

We are currently assuming that regcache->ptid is equal to inferior_ptid
when we call target_fetch/store_registers.  These asserts just validate
that assumption.  Also, since the following patches will change target
code to use regcache->ptid instead of inferior_ptid, asserting that they
are the same should ensure that our changes don't have any unintended
consequences.

gdb/ChangeLog:

* target.c (target_fetch_registers, target_store_registers): Add
assert.
gdb/ChangeLog
gdb/target.c