summaryrefslogtreecommitdiff
path: root/gdb/ada-typeprint.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-01-03 13:11:51 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-01-03 13:11:51 +0000
commite556198a120b8b33819f30dac515f046cb2ecaa6 (patch)
treea140b012504ce1b00dbae3783428f2d42f1acff5 /gdb/ada-typeprint.c
parentcabb1507a61010f6723ec96e4a23eba9c5ec1138 (diff)
downloadgdb-e556198a120b8b33819f30dac515f046cb2ecaa6.tar.gz
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c
index 8532d6ab268..7bfb001b7bc 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)