diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-01-03 13:11:51 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-01-03 13:11:51 +0000 |
commit | f192137b09a5f99ef0ab14f19cb7160871f25963 (patch) | |
tree | e2de2ee66ae96bb0432f5d40e68822bcae4f6937 /gdb/ada-typeprint.c | |
parent | 1ed6ede0102f09c717fb707bd27e7d224c77f9ef (diff) | |
download | ppe42-binutils-f192137b09a5f99ef0ab14f19cb7160871f25963.tar.gz ppe42-binutils-f192137b09a5f99ef0ab14f19cb7160871f25963.zip |
* ada-lang.c (static_unwrap_type): Add forward declaration.
(template_to_static_fixed_type): Fields of dynamic types sometimes
also need to be unwrapped. Take this into account.
(ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
(ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
* ada-typeprint.c (ada_print_type): Get the typename from
the original type, not the base type.
Diffstat (limited to 'gdb/ada-typeprint.c')
-rw-r--r-- | gdb/ada-typeprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 8532d6ab26..7bfb001b7b 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -753,7 +753,7 @@ ada_print_type (struct type *type0, char *varstring, struct ui_file *stream, int show, int level) { struct type *type = ada_check_typedef (ada_get_base_type (type0)); - char *type_name = decoded_type_name (type); + char *type_name = decoded_type_name (type0); int is_var_decl = (varstring != NULL && varstring[0] != '\0'); if (type == NULL) |