diff options
author | Paul N. Hilfinger <hilfinger@adacore.com> | 2004-10-08 09:40:12 +0000 |
---|---|---|
committer | Paul N. Hilfinger <hilfinger@adacore.com> | 2004-10-08 09:40:12 +0000 |
commit | 61ee279cebdbb701d5cfcc353c76bd930ba56eff (patch) | |
tree | fda75970d78d10edaecce714381ca48015ae7837 /gdb/ada-typeprint.c | |
parent | e80e03907ce9e819196f7c0410fd8e783897c57f (diff) | |
download | gdb-61ee279cebdbb701d5cfcc353c76bd930ba56eff.zip gdb-61ee279cebdbb701d5cfcc353c76bd930ba56eff.tar.gz gdb-61ee279cebdbb701d5cfcc353c76bd930ba56eff.tar.bz2 |
* ada-typeprint.c (ada_print_type): Use int_string for printing
modulus of modular type.
* ada-lang.h (ada_modulus): Change return type to unsigned.
* ada-lang.c (ada_language_arch_info): Correct type of
string_char_type.
(ada_modulus): Return unsigned result.
(ada_lookup_symbol): Remove user disambiguation and modify comment
accordingly.
2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
Committed by Paul Hilfinger.
* ada-lang.c (decode_packed_array): On big-endian targets,
left-justify the value if it comes with a modular type.
2004-10-08 Joel Brobecker <brobecker@gnat.com>
Committed by Paul Hilfinger.
* ada-lang.c (template_to_static_fixed_type): Fix a small typo.
(is_name_suffix): Add support for "___JM" suffixes.
(ada_check_typedef): Renames ada_completed_type.
Update all users of CHECK_TYPEDEF, check_typedef, and
ada_complete_type to call ada_check_typedef.
* ada-typeprint.c: Likewise.
* ada-valprint.c: Likewise.
Diffstat (limited to 'gdb/ada-typeprint.c')
-rw-r--r-- | gdb/ada-typeprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 5e3385c..8311d63 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -754,7 +754,7 @@ void ada_print_type (struct type *type0, char *varstring, struct ui_file *stream, int show, int level) { - struct type *type = ada_completed_type (ada_get_base_type (type0)); + struct type *type = ada_check_typedef (ada_get_base_type (type0)); char *type_name = decoded_type_name (type); int is_var_decl = (varstring != NULL && varstring[0] != '\0'); @@ -768,7 +768,7 @@ ada_print_type (struct type *type0, char *varstring, struct ui_file *stream, } if (show > 0) - CHECK_TYPEDEF (type); + type = ada_check_typedef (type); if (is_var_decl && TYPE_CODE (type) != TYPE_CODE_FUNC) fprintf_filtered (stream, "%.*s: ", |