]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[GDBserver] unit test to i386_tdesc
authorYao Qi <yao.qi@linaro.org>
Wed, 5 Jul 2017 07:30:53 +0000 (08:30 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 10 Jul 2017 11:02:50 +0000 (12:02 +0100)
commitcf808992d77c676d793830971f1cef29e6e92de9
tree2870a325346d41f7b9d39319b75a99b8c6776d93
parent1f0a4b400b7d24ee6dd6302c0cd7809fd3af844b
[GDBserver] unit test to i386_tdesc

This patch adds a unit test in GDBserver to test dynamically created
target descriptions equal these pre-generated ones.

gdb/gdbserver:

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

* linux-x86-tdesc.c: Include selftest.h.
(i386_tdesc_test): New function.
(initialize_low_tdesc): Call register_self_test.
* tdesc.h: Include regdef.h.
(target_desc): Override operator == and !=.

gdb:

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

* regformats/regdef.h (struct reg): Override operator == and !=.
gdb/gdbserver/linux-x86-tdesc.c
gdb/gdbserver/tdesc.h
gdb/regformats/regdef.h