2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 19:12:16 +00:00

Added JIT debugging hooks

[SVN r10507]
This commit is contained in:
Dave Abrahams
2001-07-02 00:16:28 +00:00
parent a32dedd16c
commit 884b59a0b3
4 changed files with 42 additions and 0 deletions

View File

@@ -20,6 +20,16 @@ namespace {
}
}
# ifdef BOOST_MSVC // fixes for JIT debugging
# include <windows.h>
extern "C" void structured_exception_translator(unsigned int, EXCEPTION_POINTERS*)
{
throw;
}
extern "C" void (*old_translator)(unsigned int, EXCEPTION_POINTERS*)
= _set_se_translator(structured_exception_translator);
# endif
BOOST_PYTHON_MODULE_INIT(dvect)
{
try
@@ -43,3 +53,4 @@ BOOST_PYTHON_MODULE_INIT(dvect)
python::handle_exception(); // Deal with the exception for Python
}
}

View File

@@ -20,6 +20,16 @@ namespace {
}
}
# ifdef BOOST_MSVC // fixes for JIT debugging
# include <windows.h>
extern "C" void structured_exception_translator(unsigned int, EXCEPTION_POINTERS*)
{
throw;
}
extern "C" void (*old_translator)(unsigned int, EXCEPTION_POINTERS*)
= _set_se_translator(structured_exception_translator);
# endif
BOOST_PYTHON_MODULE_INIT(ivect)
{
try
@@ -43,3 +53,4 @@ BOOST_PYTHON_MODULE_INIT(ivect)
python::handle_exception(); // Deal with the exception for Python
}
}

View File

@@ -6,6 +6,16 @@ namespace python = boost::python;
#include "noncopyable.h"
# ifdef BOOST_MSVC // fixes for JIT debugging
# include <windows.h>
extern "C" void structured_exception_translator(unsigned int, EXCEPTION_POINTERS*)
{
throw;
}
extern "C" void (*old_translator)(unsigned int, EXCEPTION_POINTERS*)
= _set_se_translator(structured_exception_translator);
# endif
BOOST_PYTHON_MODULE_INIT(noncopyable_export)
{
try

View File

@@ -19,6 +19,16 @@ namespace { // Avoid cluttering the global namespace.
}
}
# ifdef BOOST_MSVC // fixes for JIT debugging
# include <windows.h>
extern "C" void structured_exception_translator(unsigned int, EXCEPTION_POINTERS*)
{
throw;
}
extern "C" void (*old_translator)(unsigned int, EXCEPTION_POINTERS*)
= _set_se_translator(structured_exception_translator);
# endif
BOOST_PYTHON_MODULE_INIT(noncopyable_import)
{
try