aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-04-18 11:51:21 +0100
committerAlan Hayward <alan.hayward@arm.com>2018-04-18 14:00:43 +0100
commitd278f585afe8e096e9232b8fd80404ab5fae5719 (patch)
tree53550c54565f386592c024088a6f86c9832d59e0 /gdb/common
parenteee8a18dd2d4b62ed5e03324b099508717886193 (diff)
downloadgdb-d278f585afe8e096e9232b8fd80404ab5fae5719.zip
gdb-d278f585afe8e096e9232b8fd80404ab5fae5719.tar.gz
gdb-d278f585afe8e096e9232b8fd80404ab5fae5719.tar.bz2
Add tdesc osabi and architecture functions
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. gdbserver/ * tdesc.c (tdesc_architecture_name): Add new function. (tdesc_osabi_name): Likewise. (tdesc_get_features_xml): Use new functions.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/tdesc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/common/tdesc.h b/gdb/common/tdesc.h
index 7f4222b..8b826ec 100644
--- a/gdb/common/tdesc.h
+++ b/gdb/common/tdesc.h
@@ -297,9 +297,17 @@ target_desc *allocate_target_description (void);
void set_tdesc_architecture (target_desc *target_desc,
const char *name);
+/* Return the architecture associated with this target description as a string,
+ or NULL if no architecture was specified. */
+const char *tdesc_architecture_name (const struct target_desc *target_desc);
+
/* Set TARGET_DESC's osabi by NAME. */
void set_tdesc_osabi (target_desc *target_desc, const char *name);
+/* Return the osabi associated with this target description as a string,
+ or NULL if no osabi was specified. */
+const char *tdesc_osabi_name (const struct target_desc *target_desc);
+
/* Return the type associated with ID in the context of FEATURE, or
NULL if none. */
struct tdesc_type *tdesc_named_type (const struct tdesc_feature *feature,