Commonise tdesc_reg and makes use of it in gdbserver tdesc
authorAlan Hayward <alan.hayward@arm.com>
Wed, 18 Apr 2018 10:28:51 +0000 (11:28 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Wed, 18 Apr 2018 13:00:30 +0000 (14:00 +0100)
commitea3e7d717982e3c467edc7886b1d6cc2807195af
treea50ee7f7b3986c136909b29040ff67bb493fb37f
parenta7504f87d41694d441fabb3308631df4d2750c24
Commonise tdesc_reg and makes use of it in gdbserver tdesc

gdb/
* Makefile.in: Add arch/tdesc.c
* common/tdesc.c: New file.
* common/tdesc.h (tdesc_element_visitor): Move to here.
(tdesc_element): Likewise.
(tdesc_reg): Likewise.
(tdesc_reg_up): Likewise.
* regformats/regdef.h (reg): Add offset to constructors.
* target-descriptions.c (tdesc_element_visitor): Move from here.
(tdesc_element): Likewise.
(tdesc_reg): Likewise.
(tdesc_reg_up): Likewise.

gdbserver/
* Makefile.in: Add common/tdesc.c
* tdesc.c (init_target_desc): init all reg_defs from register vector.
(tdesc_create_reg): Create tdesc_reg.
* tdesc.h (tdesc_feature): Add register vector.
gdb/ChangeLog
gdb/Makefile.in
gdb/common/tdesc.c [new file with mode: 0644]
gdb/common/tdesc.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in
gdb/gdbserver/tdesc.c
gdb/gdbserver/tdesc.h
gdb/regformats/regdef.h
gdb/target-descriptions.c