Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/gdb/gdb/c-valprint.c
Show First 20 Lines • Show All 553 Lines • ▼ Show 20 Lines | fprintf_filtered (stream, ") "); | ||||
else | else | ||||
{ | { | ||||
/* normal case */ | /* normal case */ | ||||
fprintf_filtered (stream, "("); | fprintf_filtered (stream, "("); | ||||
type_print (type, "", stream, -1); | type_print (type, "", stream, -1); | ||||
fprintf_filtered (stream, ") "); | fprintf_filtered (stream, ") "); | ||||
} | } | ||||
} | } | ||||
if (!value_initialized (val)) | |||||
fprintf_filtered (stream, " [uninitialized] "); | |||||
if (objectprint && (TYPE_CODE (VALUE_TYPE (val)) == TYPE_CODE_CLASS)) | if (objectprint && (TYPE_CODE (VALUE_TYPE (val)) == TYPE_CODE_CLASS)) | ||||
{ | { | ||||
/* Attempt to determine real type of object */ | /* Attempt to determine real type of object */ | ||||
real_type = value_rtti_type (val, &full, &top, &using_enc); | real_type = value_rtti_type (val, &full, &top, &using_enc); | ||||
if (real_type) | if (real_type) | ||||
{ | { | ||||
/* We have RTTI information, so use it */ | /* We have RTTI information, so use it */ | ||||
val = value_full_object (val, real_type, full, top, using_enc); | val = value_full_object (val, real_type, full, top, using_enc); | ||||
Show All 25 Lines |