diff options
author | kwerner <kwerner> | 2010-10-06 08:44:13 +0000 |
---|---|---|
committer | kwerner <kwerner> | 2010-10-06 08:44:13 +0000 |
commit | b1244daa8637c7d9eaaf551f5c999945762f97f1 (patch) | |
tree | 274f23136a1001e17e00b891b19662fc48aeba6e /gdb/c-valprint.c | |
parent | fb77fd60a4e632be4d12f0bcea04acf4c61ababa (diff) | |
download | gdb-b1244daa8637c7d9eaaf551f5c999945762f97f1.tar.gz |
gdb:
* gdbtypes.h (struct main_type): Remove flag_nottext.
(enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
(enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
(TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
* gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
of TYPE_FLAG_NOTTEXT.
(init_type): Remove the initialization of the flag_nottext field.
(gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
TYPE_FLAG_NOTTEXT.
* c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
gdb/testsuite:
* gdb.base/gnu_vector.c: Add variable c4.
* gdb.base/gnu_vector.exp: Add tests for character vector printing.
* gdb.arch/altivec-abi.exp: Fix expect pattern of character vectors.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index f0895a4d9c1..521460b21fc 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -180,8 +180,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset, /* Print arrays of textual chars with a string syntax, as long as the entire array is valid. */ - if (!TYPE_VECTOR (type) - && c_textual_element_type (unresolved_elttype, options->format) + if (c_textual_element_type (unresolved_elttype, options->format) && value_bits_valid (original_value, TARGET_CHAR_BIT * embedded_offset, TARGET_CHAR_BIT * TYPE_LENGTH (type))) |