aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-02-26 10:51:36 +0000
committerAlan Hayward <alan.hayward@arm.com>2018-02-26 11:46:57 +0000
commitf46cd62a69b8050c7c30a53b29a781a9b5e9f062 (patch)
tree267b85304023cedd09b76e82c97e28fe6803b6ee /gdb/arch
parent46c685acda0034ffad9d767a51aa3aa5df139356 (diff)
downloadgdb-f46cd62a69b8050c7c30a53b29a781a9b5e9f062.zip
gdb-f46cd62a69b8050c7c30a53b29a781a9b5e9f062.tar.gz
gdb-f46cd62a69b8050c7c30a53b29a781a9b5e9f062.tar.bz2
Move arch/tdesc.h to common/tdesc.h
gdb/ * arch/amd64.h: Use common/tdesc.h. * arch/i386.c: Likewise. * arch/i386.h: Likewise. * arch/tic6x.c: Likewise. * arch/tdesc.h: Move file from here... * common/tdesc.h: ...to here. * features/aarch64-core.c: Regenerate. * features/aarch64-fpu.c: Regenerate. * features/i386/32bit-avx.c: Regenerate. * features/i386/32bit-avx512.c: Regenerate. * features/i386/32bit-core.c: Regenerate. * features/i386/32bit-linux.c: Regenerate. * features/i386/32bit-mpx.c: Regenerate. * features/i386/32bit-pkeys.c: Regenerate. * features/i386/32bit-sse.c: Regenerate. * features/i386/64bit-avx.c: Regenerate. * features/i386/64bit-avx512.c: Regenerate. * features/i386/64bit-core.c: Regenerate. * features/i386/64bit-linux.c: Regenerate. * features/i386/64bit-mpx.c: Regenerate. * features/i386/64bit-pkeys.c: Regenerate. * features/i386/64bit-segments.c: Regenerate. * features/i386/64bit-sse.c: Regenerate. * features/i386/x32-core.c: Regenerate. * features/tic6x-c6xp.c: Regenerate. * features/tic6x-core.c: Regenerate. * features/tic6x-gp.c: Regenerate. * target-descriptions.c: Use common/tdesc.h. * target-descriptions.h: Likewise. gdbserver/ * tdesc.c: Use common/tdesc.h. * tdesc.h: Likewise.
Diffstat (limited to 'gdb/arch')
-rw-r--r--gdb/arch/amd64.h2
-rw-r--r--gdb/arch/i386.c2
-rw-r--r--gdb/arch/i386.h2
-rw-r--r--gdb/arch/tdesc.h95
-rw-r--r--gdb/arch/tic6x.c2
5 files changed, 4 insertions, 99 deletions
diff --git a/gdb/arch/amd64.h b/gdb/arch/amd64.h
index b50051f..c0c4dc2 100644
--- a/gdb/arch/amd64.h
+++ b/gdb/arch/amd64.h
@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "tdesc.h"
+#include "common/tdesc.h"
#include <stdint.h>
target_desc *amd64_create_target_description (uint64_t xcr0, bool is_x32,
diff --git a/gdb/arch/i386.c b/gdb/arch/i386.c
index 82e9b11..92b6973 100644
--- a/gdb/arch/i386.c
+++ b/gdb/arch/i386.c
@@ -17,7 +17,7 @@
#include "common-defs.h"
#include "i386.h"
-#include "tdesc.h"
+#include "common/tdesc.h"
#include "x86-xstate.h"
#include <stdlib.h>
diff --git a/gdb/arch/i386.h b/gdb/arch/i386.h
index ffc34e3..8f3fe3b 100644
--- a/gdb/arch/i386.h
+++ b/gdb/arch/i386.h
@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "tdesc.h"
+#include "common/tdesc.h"
#include <stdint.h>
target_desc *i386_create_target_description (uint64_t xcr0, bool is_linux);
diff --git a/gdb/arch/tdesc.h b/gdb/arch/tdesc.h
deleted file mode 100644
index cc11651..0000000
--- a/gdb/arch/tdesc.h
+++ /dev/null
@@ -1,95 +0,0 @@
-/* Copyright (C) 2006-2018 Free Software Foundation, Inc.
-
- This file is part of GDB.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef ARCH_TDESC_H
-#define ARCH_TDESC_H 1
-
-struct tdesc_feature;
-struct tdesc_type;
-struct tdesc_type_builtin;
-struct tdesc_type_vector;
-struct tdesc_type_with_fields;
-struct tdesc_reg;
-struct target_desc;
-
-/* Allocate a new target_desc. */
-target_desc *allocate_target_description (void);
-
-/* Set TARGET_DESC's architecture by NAME. */
-void set_tdesc_architecture (target_desc *target_desc,
- const char *name);
-
-/* Set TARGET_DESC's osabi by NAME. */
-void set_tdesc_osabi (target_desc *target_desc, const char *name);
-
-/* 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,
- const char *id);
-
-/* Return the created feature named NAME in target description TDESC. */
-struct tdesc_feature *tdesc_create_feature (struct target_desc *tdesc,
- const char *name,
- const char *xml = nullptr);
-
-
-/* Return the created vector tdesc_type named NAME in FEATURE. */
-struct tdesc_type *tdesc_create_vector (struct tdesc_feature *feature,
- const char *name,
- struct tdesc_type *field_type,
- int count);
-
-/* Return the created struct tdesc_type named NAME in FEATURE. */
-tdesc_type_with_fields *tdesc_create_struct (struct tdesc_feature *feature,
- const char *name);
-
-/* Return the created union tdesc_type named NAME in FEATURE. */
-tdesc_type_with_fields *tdesc_create_union (struct tdesc_feature *feature,
- const char *name);
-
-/* Return the created flags tdesc_type named NAME in FEATURE. */
-tdesc_type_with_fields *tdesc_create_flags (struct tdesc_feature *feature,
- const char *name,
- int size);
-
-/* Add a new field to TYPE. FIELD_NAME is its name, and FIELD_TYPE is
- its type. */
-void tdesc_add_field (tdesc_type_with_fields *type, const char *field_name,
- struct tdesc_type *field_type);
-
-/* Set the total length of TYPE. Structs which contain bitfields may
- omit the reserved bits, so the end of the last field may not
- suffice. */
-void tdesc_set_struct_size (tdesc_type_with_fields *type, int size);
-
-/* Add a new untyped bitfield to TYPE.
- Untyped bitfields become either uint32 or uint64 depending on the size
- of the underlying type. */
-void tdesc_add_bitfield (tdesc_type_with_fields *type, const char *field_name,
- int start, int end);
-
-/* A flag is just a typed(bool) single-bit bitfield.
- This function is kept to minimize changes in generated files. */
-void tdesc_add_flag (tdesc_type_with_fields *type, int start,
- const char *flag_name);
-
-/* Create a register in feature FEATURE. */
-void tdesc_create_reg (struct tdesc_feature *feature, const char *name,
- int regnum, int save_restore, const char *group,
- int bitsize, const char *type);
-
-#endif /* ARCH_TDESC_H */
diff --git a/gdb/arch/tic6x.c b/gdb/arch/tic6x.c
index 9fc36cd..6b57baa 100644
--- a/gdb/arch/tic6x.c
+++ b/gdb/arch/tic6x.c
@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "tdesc.h"
+#include "common/tdesc.h"
#include "tic6x.h"
#include "common/common-defs.h"