forked from qt-creator/qt-creator
Cdb: Introduce interface for python dumpers
Change-Id: I0ef2fd8a44232d65b0d772fd6c65230266d586a8 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
#include <Python.h>
|
||||
#include "pycdbextmodule.h"
|
||||
#endif
|
||||
|
||||
// wdbgexts.h declares 'extern WINDBG_EXTENSION_APIS ExtensionApis;'
|
||||
@@ -160,7 +161,10 @@ HRESULT ExtensionContext::initialize(PULONG Version, PULONG Flags)
|
||||
*Flags = 0;
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
initCdbextPythonModule();
|
||||
Py_Initialize();
|
||||
PyRun_SimpleString("import cdbext");
|
||||
PyRun_SimpleString("import sys");
|
||||
#endif
|
||||
|
||||
IInterfacePointer<CIDebugClient> client;
|
||||
|
||||
Reference in New Issue
Block a user