Add instruction_reader to arm process record
authorYao Qi <yao.qi@linaro.org>
Thu, 16 Mar 2017 16:35:18 +0000 (16:35 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 16 Mar 2017 16:35:18 +0000 (16:35 +0000)
commit728a79135f51a1c20719ebaf3c98446d9ee248db
tree7227bbc965d88bc7f5ec719e626e26d8ae78913c
parenta7c0469f992721b30665ba92f4f2f74d29032a84
Add instruction_reader to arm process record

This patch adds an abstract class abstract_memory_reader a
and pass it to the code reading instructions in arm process record,
rather than using target_read_memory to read from real target.  This
paves the way for adding more unit tests to arm process record.

gdb:

2017-03-16  Yao Qi  <yao.qi@linaro.org>

* arm-tdep.c (abstract_memory_reader): New class.
(instruction_reader): New class.
(extract_arm_insn): Add argument 'reader'.  Callers updated.
(decode_insn): Likewise.
gdb/ChangeLog
gdb/arm-tdep.c
This page took 0.026007 seconds and 4 git commands to generate.