Clear GDB internal state after each unit test
authorYao Qi <yao.qi@linaro.org>
Wed, 24 May 2017 21:15:22 +0000 (22:15 +0100)
committerYao Qi <yao.qi@linaro.org>
Wed, 24 May 2017 21:15:22 +0000 (22:15 +0100)
commit7a3929c417b1388c689a0cd6b0b2f6579d85ec78
tree2389ef4efe2e4fe086ca004be7138fd8c278bc98
parent88c1242dc0a1e1ab582a65ea8bd05eb5f244c59b
Clear GDB internal state after each unit test

GDB has some global variables, like sentinel_frame,
current_thread_arch, and etc, we need to reset them after each unit
tests.

gdb:

2017-05-24  Yao Qi  <yao.qi@linaro.org>

* selftest-arch.c (tests_with_arch): Call registers_changed
and reinit_frame_cache.
* selftest.c (run_self_tests): Likewise.
gdb/ChangeLog
gdb/selftest-arch.c
gdb/selftest.c