changeset 15595:6e780fb15c14

Make Vdebug_on_interrupt not be static * sighandlers.cc: Make Vdebug_on_interrupt not be static. * sighandlers.h: Declare Vdebug_on_interrupt. * pt-jit.cc: Include sighandlers.h.
author Max Brister <max@2bass.com>
date Sun, 04 Nov 2012 16:28:56 -0700
parents a7b22144318a
children 5f031158c693
files libinterp/interp-core/pt-jit.cc libinterp/interpfcn/sighandlers.cc libinterp/interpfcn/sighandlers.h
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/interp-core/pt-jit.cc	Sun Nov 04 16:09:06 2012 -0700
+++ b/libinterp/interp-core/pt-jit.cc	Sun Nov 04 16:28:56 2012 -0700
@@ -32,6 +32,7 @@
 #include "ov.h"
 #include "pt-all.h"
 #include "pt-jit.h"
+#include "sighandlers.h"
 #include "symtab.h"
 #include "variables.h"
 
--- a/libinterp/interpfcn/sighandlers.cc	Sun Nov 04 16:09:06 2012 -0700
+++ b/libinterp/interpfcn/sighandlers.cc	Sun Nov 04 16:28:56 2012 -0700
@@ -61,7 +61,7 @@
 bool can_interrupt = false;
 
 // TRUE means we should try to enter the debugger on SIGINT.
-static bool Vdebug_on_interrupt = false;
+bool Vdebug_on_interrupt = false;
 
 // Allow users to avoid writing octave-workspace for SIGHUP (sent by
 // closing gnome-terminal, for example).  Note that this variable has
--- a/libinterp/interpfcn/sighandlers.h	Sun Nov 04 16:09:06 2012 -0700
+++ b/libinterp/interpfcn/sighandlers.h	Sun Nov 04 16:28:56 2012 -0700
@@ -174,4 +174,7 @@
   static void cleanup_instance (void) { delete instance; instance = 0; }
 };
 
+// TRUE means we should try to enter the debugger on SIGINT.
+extern OCTINTERP_API bool Vdebug_on_interrupt;
+
 #endif