diff options
author | Ken Werner <ken.werner@de.ibm.com> | 2010-10-06 08:44:15 +0000 |
---|---|---|
committer | Ken Werner <ken.werner@de.ibm.com> | 2010-10-06 08:44:15 +0000 |
commit | 2844d6b5a2e0a0a7ec180f97d29acc06000587cd (patch) | |
tree | 2c7e273e07ce6bd67789d9c8a0def3fef773a79b /gdb/c-valprint.c | |
parent | 9ae92b05ccb5564c6546bff1b0e5861b2d32a34a (diff) | |
download | gdb-2844d6b5a2e0a0a7ec180f97d29acc06000587cd.zip gdb-2844d6b5a2e0a0a7ec180f97d29acc06000587cd.tar.gz gdb-2844d6b5a2e0a0a7ec180f97d29acc06000587cd.tar.bz2 |
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 f0895a4..521460b 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))) |