]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[PATCH v3 5/8] Add tdesc osabi and architecture functions
authorAlan Hayward <alan.hayward@arm.com>
Thu, 1 Mar 2018 11:03:25 +0000 (11:03 +0000)
committerAlan Hayward <alan.hayward@arm.com>
Thu, 1 Mar 2018 11:03:25 +0000 (11:03 +0000)
commita2303a6ba747046fcb9f848a76ee66d7fce23417
treecff5909678f0f243fa84fb3936e8aae2eb55ede6
parent5d5e92d9e071dc9d92934c2b62c25d006be465a5
[PATCH v3 5/8] Add tdesc osabi and architecture functions

Add functions to access to printable names for osabi and architecture in
target_desc.

I wanted to add these as member functions of target_desc, but cannot until
target_desc is moved into the header files.

Alan.

2018-03-01  Alan Hayward  <alan.hayward@arm.com>

gdb/
* common/tdesc.h (tdesc_architecture_name): Add new declaration.
(tdesc_osabi_name): Likewise.
* target-descriptions.c (tdesc_architecture_name): Add new function.
(tdesc_osabi_name): Likewise.

gdb/gdbserver/
* tdesc.c (tdesc_architecture_name): Add new function.
(tdesc_osabi_name): Likewise.
(tdesc_get_features_xml): Use new functions.
gdb/common/tdesc.h
gdb/gdbserver/tdesc.c
gdb/target-descriptions.c