Normalize TRY_CATCH exception handling block
[deliverable/binutils-gdb.git] / gdb / parse.c
index af01947894d853522451ee8dfaad603d3eccf370..09fb0b37a95089cb7320556d71f9f4e8c61dc333 100644 (file)
@@ -1290,8 +1290,13 @@ parse_expression_for_completion (const char *string, char **name,
       parse_completion = 1;
       exp = parse_exp_in_context (&string, 0, 0, 0, 0, &subexp);
     }
+  if (except.reason < 0)
+    {
+      /* Nothing, EXP remains NULL.  */
+    }
+
   parse_completion = 0;
-  if (except.reason < 0 || ! exp)
+  if (exp == NULL)
     return NULL;
 
   if (expout_tag_completion_type != TYPE_CODE_UNDEF)
This page took 0.028057 seconds and 4 git commands to generate.