Disassembly unit test: memory error
authorYao Qi <yao.qi@linaro.org>
Thu, 26 Jan 2017 14:29:19 +0000 (14:29 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 26 Jan 2017 14:29:19 +0000 (14:29 +0000)
commit658ca58c4d41c7512dcabcbc4a5ea2109045c363
treea58a313f3b65f5b9cba4cbf2aec516a1ba00af63
parent79843d45f7633f33dca8b0a9999a1b0795b6b459
Disassembly unit test: memory error

This patch adds a unit test about memory error occurs on reading
memory, and check MEMORY_ERROR exception is always thrown.

gdb:

2017-01-26  Yao Qi  <yao.qi@linaro.org>

* disasm-selftests.c (memory_error_test): New function.
(_initialize_disasm_selftests): Register memory_error_test.
gdb/ChangeLog
gdb/disasm-selftests.c