Use target_read_code in disassemble.
authorYao Qi <yao@codesourcery.com>
Fri, 1 Nov 2013 04:28:54 +0000 (12:28 +0800)
committerYao Qi <yao@codesourcery.com>
Sun, 24 Nov 2013 06:56:51 +0000 (14:56 +0800)
commit283f7163ecb9e36c817ded1c7306650d1dc44c11
tree55e05c6b1a518f2309c92f9bcfe5ed30313bd75b
parent29453a14557af65ed7a0867722b0145bb9f0e0c2
Use target_read_code in disassemble.

This patch teaches "disassembly" use code cache mechanism to read
target code.

gdb:

2013-11-24  Yao Qi  <yao@codesourcery.com>

* disasm.c (dis_asm_read_memory): Call target_read_code
instead of target_read_memory.
gdb/ChangeLog
gdb/disasm.c