summaryrefslogtreecommitdiff
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-07-02 18:02:17 +0000
committerTom Tromey <tromey@redhat.com>2010-07-02 18:02:17 +0000
commit66cf38b27885179355ac030e7cd1f247b4793306 (patch)
treec2ab7078123495edb5e77f901e922507dad83576 /gdb/c-valprint.c
parentb74acde4dc3dbe68897cf38ef4417db01c71c3ec (diff)
downloadgdb-66cf38b27885179355ac030e7cd1f247b4793306.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index e2057058407..4e5a95fe062 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)))