diff options
author | Alan Hayward <alan.hayward@arm.com> | 2018-02-26 10:51:36 +0000 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2018-02-26 11:46:57 +0000 |
commit | f46cd62a69b8050c7c30a53b29a781a9b5e9f062 (patch) | |
tree | 267b85304023cedd09b76e82c97e28fe6803b6ee /gdb/gdbserver | |
parent | 46c685acda0034ffad9d767a51aa3aa5df139356 (diff) | |
download | gdb-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/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/tdesc.c | 24 | ||||
-rw-r--r-- | gdb/gdbserver/tdesc.h | 2 |
3 files changed, 18 insertions, 13 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index f105efa..81e44f6 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2018-02-26 Alan Hayward <alan.hayward@arm.com> + + * tdesc.c: Use common/tdesc.h. + * tdesc.h: Likewise. + 2018-02-20 Alan Hayward <alan.hayward@arm.com> Simon Marchi <simon.marchi@ericsson.com> diff --git a/gdb/gdbserver/tdesc.c b/gdb/gdbserver/tdesc.c index c39b5e7..00a5e8d 100644 --- a/gdb/gdbserver/tdesc.c +++ b/gdb/gdbserver/tdesc.c @@ -66,7 +66,7 @@ current_target_desc (void) return current_process ()->tdesc; } -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ void set_tdesc_architecture (struct target_desc *target_desc, @@ -75,7 +75,7 @@ set_tdesc_architecture (struct target_desc *target_desc, target_desc->arch = xstrdup (name); } -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ void set_tdesc_osabi (struct target_desc *target_desc, const char *name) @@ -132,7 +132,7 @@ tdesc_get_features_xml (target_desc *tdesc) struct tdesc_type {}; -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ struct tdesc_feature * tdesc_create_feature (struct target_desc *tdesc, const char *name, @@ -144,7 +144,7 @@ tdesc_create_feature (struct target_desc *tdesc, const char *name, return tdesc; } -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ tdesc_type_with_fields * tdesc_create_flags (struct tdesc_feature *feature, const char *name, @@ -153,14 +153,14 @@ tdesc_create_flags (struct tdesc_feature *feature, const char *name, return NULL; } -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ void tdesc_add_flag (tdesc_type_with_fields *type, int start, const char *flag_name) {} -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ struct tdesc_type * tdesc_named_type (const struct tdesc_feature *feature, const char *id) @@ -168,7 +168,7 @@ tdesc_named_type (const struct tdesc_feature *feature, const char *id) return NULL; } -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ tdesc_type_with_fields * tdesc_create_union (struct tdesc_feature *feature, const char *id) @@ -176,7 +176,7 @@ tdesc_create_union (struct tdesc_feature *feature, const char *id) return NULL; } -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ tdesc_type_with_fields * tdesc_create_struct (struct tdesc_feature *feature, const char *id) @@ -184,7 +184,7 @@ tdesc_create_struct (struct tdesc_feature *feature, const char *id) return NULL; } -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ void tdesc_create_reg (struct tdesc_feature *feature, const char *name, @@ -212,7 +212,7 @@ tdesc_create_reg (struct tdesc_feature *feature, const char *name, tdesc->reg_defs.push_back (reg); } -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ struct tdesc_type * tdesc_create_vector (struct tdesc_feature *feature, const char *name, @@ -226,14 +226,14 @@ tdesc_add_bitfield (tdesc_type_with_fields *type, const char *field_name, int start, int end) {} -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ void tdesc_add_field (tdesc_type_with_fields *type, const char *field_name, struct tdesc_type *field_type) {} -/* See arch/tdesc.h. */ +/* See common/tdesc.h. */ void tdesc_set_struct_size (tdesc_type_with_fields *type, int size) diff --git a/gdb/gdbserver/tdesc.h b/gdb/gdbserver/tdesc.h index 7835005..d21574c 100644 --- a/gdb/gdbserver/tdesc.h +++ b/gdb/gdbserver/tdesc.h @@ -19,7 +19,7 @@ #ifndef TDESC_H #define TDESC_H -#include "arch/tdesc.h" +#include "common/tdesc.h" #include "regdef.h" #include <vector> |