mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 11:04:18 +08:00
gdb/
* c-valprint.c (c_val_print): Print a string with unavailable contents as an array.
This commit is contained in:
parent
5467c6c807
commit
9fc6d940ae
@ -1,3 +1,8 @@
|
||||
2011-02-14 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* c-valprint.c (c_val_print): Print a string with unavailable
|
||||
contents as an array.
|
||||
|
||||
2011-02-14 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* value.h (unpack_bits_as_long): Delete declaration.
|
||||
|
@ -187,6 +187,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
|
||||
long as the entire array is valid. */
|
||||
if (c_textual_element_type (unresolved_elttype,
|
||||
options->format)
|
||||
&& value_bytes_available (original_value, embedded_offset,
|
||||
TYPE_LENGTH (type))
|
||||
&& value_bits_valid (original_value,
|
||||
TARGET_CHAR_BIT * embedded_offset,
|
||||
TARGET_CHAR_BIT * TYPE_LENGTH (type)))
|
||||
|
Loading…
Reference in New Issue
Block a user