aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index d48c599..00943c1 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -1054,16 +1054,6 @@ common_val_print (struct value *value, struct ui_file *stream, int recurse,
QUIT;
- /* Ensure that the type is complete and not just a stub. If the type is
- only a stub and we can't find and substitute its complete type, then
- print appropriate string and return. */
-
- if (real_type->is_stub ())
- {
- fprintf_styled (stream, metadata_style.style (), _("<incomplete type>"));
- return;
- }
-
if (!valprint_check_validity (stream, real_type, 0, value))
return;
@@ -1074,6 +1064,16 @@ common_val_print (struct value *value, struct ui_file *stream, int recurse,
return;
}
+ /* Ensure that the type is complete and not just a stub. If the type is
+ only a stub and we can't find and substitute its complete type, then
+ print appropriate string and return. */
+
+ if (real_type->is_stub ())
+ {
+ fprintf_styled (stream, metadata_style.style (), _("<incomplete type>"));
+ return;
+ }
+
/* Handle summary mode. If the value is a scalar, print it;
otherwise, print an ellipsis. */
if (options->summary && !val_print_scalar_type_p (type))