#include "gdbcmd.h"
#include "demangle.h"
#include "annotate.h"
-#include <string.h>
#include "c-lang.h"
#include "target.h"
#include "cp-abi.h"
#include "cp-support.h"
#include "language.h"
#include "extension.h"
-#include "exceptions.h"
#include "typeprint.h"
/* Controls printing of vtbl's. */
{
fputs_filtered (_("<synthetic pointer>"), stream);
}
- else if (!value_bits_valid (val,
- TYPE_FIELD_BITPOS (type, i),
- TYPE_FIELD_BITSIZE (type, i)))
- {
- val_print_optimized_out (val, stream);
- }
else
{
struct value_print_options opts = *options;
/* We require all bits to be valid in order to attempt a
conversion. */
- if (value_bits_valid (val, TARGET_CHAR_BIT * offset,
- TARGET_CHAR_BIT * TYPE_LENGTH (type)))
+ if (!value_bits_any_optimized_out (val,
+ TARGET_CHAR_BIT * offset,
+ TARGET_CHAR_BIT * TYPE_LENGTH (type)))
{
struct value *value;
int full, top, using_enc;