Normalize TRY_CATCH exception handling block
[deliverable/binutils-gdb.git] / gdb / cp-abi.c
index 9316c4c866b9022efaf1fa26fea759fbefa3af4b..70a05288049eb6d8a8f1f092728880e707588644 100644 (file)
@@ -80,15 +80,17 @@ baseclass_offset (struct type *type, int index, const gdb_byte *valaddr,
                                                embedded_offset,
                                                address, val);
     }
+  if (ex.reason < 0)
+    {
+      if (ex.error != NOT_AVAILABLE_ERROR)
+       throw_exception (ex);
+
+      throw_error (NOT_AVAILABLE_ERROR,
+                  _("Cannot determine virtual baseclass offset "
+                    "of incomplete object"));
+    }
 
-  if (ex.reason < 0 && ex.error == NOT_AVAILABLE_ERROR)
-    throw_error (NOT_AVAILABLE_ERROR,
-                _("Cannot determine virtual baseclass offset "
-                  "of incomplete object"));
-  else if (ex.reason < 0)
-    throw_exception (ex);
-  else
-    return res;
+  return res;
 }
 
 struct value *
This page took 0.036984 seconds and 4 git commands to generate.