diff options
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/gdbserver/tdesc.c | 14 |
2 files changed, 15 insertions, 7 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 04c6f23..171bc53 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,11 @@ +2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> + + * tdesc.c (struct tdesc_type): Change return type. + (tdesc_add_flag): Change parameter type. + (tdesc_add_bitfield): Likewise. + (tdesc_add_field): Likewise. + (tdesc_set_struct_size): Likewise. + 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> * regcache.c (registers_to_string): Remove unused variable. diff --git a/gdb/gdbserver/tdesc.c b/gdb/gdbserver/tdesc.c index e2c4288..5ea2341 100644 --- a/gdb/gdbserver/tdesc.c +++ b/gdb/gdbserver/tdesc.c @@ -146,7 +146,7 @@ tdesc_create_feature (struct target_desc *tdesc, const char *name, /* See arch/tdesc.h. */ -struct tdesc_type * +tdesc_type_with_fields * tdesc_create_flags (struct tdesc_feature *feature, const char *name, int size) { @@ -156,7 +156,7 @@ tdesc_create_flags (struct tdesc_feature *feature, const char *name, /* See arch/tdesc.h. */ void -tdesc_add_flag (struct tdesc_type *type, int start, +tdesc_add_flag (tdesc_type_with_fields *type, int start, const char *flag_name) {} @@ -170,7 +170,7 @@ tdesc_named_type (const struct tdesc_feature *feature, const char *id) /* See arch/tdesc.h. */ -struct tdesc_type * +tdesc_type_with_fields * tdesc_create_union (struct tdesc_feature *feature, const char *id) { return NULL; @@ -178,7 +178,7 @@ tdesc_create_union (struct tdesc_feature *feature, const char *id) /* See arch/tdesc.h. */ -struct tdesc_type * +tdesc_type_with_fields * tdesc_create_struct (struct tdesc_feature *feature, const char *id) { return NULL; @@ -222,20 +222,20 @@ tdesc_create_vector (struct tdesc_feature *feature, const char *name, } void -tdesc_add_bitfield (struct tdesc_type *type, const char *field_name, +tdesc_add_bitfield (tdesc_type_with_fields *type, const char *field_name, int start, int end) {} /* See arch/tdesc.h. */ void -tdesc_add_field (struct tdesc_type *type, const char *field_name, +tdesc_add_field (tdesc_type_with_fields *type, const char *field_name, struct tdesc_type *field_type) {} /* See arch/tdesc.h. */ void -tdesc_set_struct_size (struct tdesc_type *type, int size) +tdesc_set_struct_size (tdesc_type_with_fields *type, int size) { } |