changeset 21159:4aa8e4b868c9

Handle interrupt thrown by dbquit (bug #46931) * oct-parse.in.yy (run): rethrow octave_interrupt_exception
author Lachlan Andrew <lachlanbis@gmail.com>
date Tue, 19 Jan 2016 12:31:06 +1100
parents 65827e9cccb8
children b5b531ba93ce
files libinterp/parse-tree/oct-parse.in.yy
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy	Sat Jan 30 10:13:34 2016 +1100
+++ b/libinterp/parse-tree/oct-parse.in.yy	Tue Jan 19 12:31:06 2016 +1100
@@ -4032,6 +4032,10 @@
       else
         error (e, "parse error in %s", file.c_str ());
     }
+  catch (octave_interrupt_exception &)
+    {
+      throw;
+    }
   catch (...)
     {
       std::string file = lexer.fcn_file_full_name;
@@ -4088,6 +4092,10 @@
           else
             error (e, "parse error in %s", file.c_str ());
         }
+      catch (octave_interrupt_exception &)
+        {
+          throw;
+        }
       catch (...)
         {
           std::string file = lexer.fcn_file_full_name;