Print nonexisting/optimized out static fields gracefully.
[deliverable/binutils-gdb.git] / gdb / p-valprint.c
index e6d4b91c3adffe0cd925c57475ffc68e99e19e5d..7854bc0c856d72fdb905689bd386bb28e58cf230 100644 (file)
@@ -844,6 +844,12 @@ pascal_object_print_static_field (struct value *val,
   struct type *type = value_type (val);
   struct value_print_options opts;
 
+  if (value_entirely_optimized_out (val))
+    {
+      val_print_optimized_out (val, stream);
+      return;
+    }
+
   if (TYPE_CODE (type) == TYPE_CODE_STRUCT)
     {
       CORE_ADDR *first_dont_print, addr;
This page took 0.025022 seconds and 4 git commands to generate.