diff options
author | Tom Tromey <tromey@redhat.com> | 2009-03-20 22:00:11 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-03-20 22:00:11 +0000 |
commit | cb249c71f6bfb565578d4258eaab9144a45716fe (patch) | |
tree | bdd83d740e1e8665d41cb61f8db67d4f22a2779c /gdb/ada-typeprint.c | |
parent | ld/ (diff) | |
download | binutils-gdb-cb249c71f6bfb565578d4258eaab9144a45716fe.tar.gz binutils-gdb-cb249c71f6bfb565578d4258eaab9144a45716fe.tar.bz2 binutils-gdb-cb249c71f6bfb565578d4258eaab9144a45716fe.zip |
2009-03-20 Tom Tromey <tromey@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf2read.c (process_die): Handle DW_TAG_typedef.
* eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
typedef.
* ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
SYMBOL_TYPE result.
* ada-typeprint.c (print_array_type): Do the NULL check
unconditionally.
Diffstat (limited to 'gdb/ada-typeprint.c')
-rw-r--r-- | gdb/ada-typeprint.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index f00824ab9af..ef665c4a0c1 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -357,16 +357,17 @@ print_array_type (struct type *type, struct ui_file *stream, int show, bitsize = 0; fprintf_filtered (stream, "array ("); + if (type == NULL) + { + fprintf_filtered (stream, _("<undecipherable array type>")); + return; + } + n_indices = -1; if (show < 0) fprintf_filtered (stream, "..."); else { - if (type == NULL) - { - fprintf_filtered (stream, _("<undecipherable array type>")); - return; - } if (ada_is_simple_array_type (type)) { struct type *range_desc_type = |