This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Add current_regcache unit test
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 09 May 2017 08:46:34 -0400
- Subject: [binutils-gdb] Add current_regcache unit test
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 8248946cc5fd4522de630b9d86627af6e8fe0097 ***
Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 8248946cc5fd4522de630b9d86627af6e8fe0097
Add current_regcache unit test
This patch adds a unit test to current_regcache, to make sure it is
correctly updated by get_thread_arch_aspace_regcache and
registers_changed_ptid.
gdb:
2017-05-09 Yao Qi <yao.qi@linaro.org>
* regcache.c [GDB_SELF_TEST]: Include selftest.h.
(current_regcache_size): New function.
(current_regcache_test): New function.
(_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.