diff options
author | Tom Tromey <tromey@redhat.com> | 2010-07-02 18:02:19 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-07-02 18:02:19 +0000 |
commit | a17ac5b05fa0f5e6cee46e2123a44906cb17b548 (patch) | |
tree | 17142a77f6a14634b1fe41d730666454ae3c2696 /gdb/c-valprint.c | |
parent | 6e08c6be2f186e6845bbf0d7b735ac3f1443e858 (diff) | |
download | gdb-a17ac5b05fa0f5e6cee46e2123a44906cb17b548.zip gdb-a17ac5b05fa0f5e6cee46e2123a44906cb17b548.tar.gz gdb-a17ac5b05fa0f5e6cee46e2123a44906cb17b548.tar.bz2 |
2010-07-02 Ken Werner <ken.werner@de.ibm.com>
gdb
* c-valprint.c (c_val_print): Fix printing of character vectors.
gdb/testsuite
* 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, 2 insertions, 1 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index e205705..4e5a95f 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -180,7 +180,8 @@ 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 (c_textual_element_type (unresolved_elttype, options->format) + if (!TYPE_VECTOR (type) + && c_textual_element_type (unresolved_elttype, options->format) && value_bits_valid (original_value, TARGET_CHAR_BIT * embedded_offset, TARGET_CHAR_BIT * TYPE_LENGTH (type))) |