mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -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)))
|
||||
|
Reference in New Issue
Block a user