diff --git a/pykd/pydbgeng.cpp b/pykd/pydbgeng.cpp index a4a43f1..23c5aee 100644 --- a/pykd/pydbgeng.cpp +++ b/pykd/pydbgeng.cpp @@ -163,6 +163,19 @@ python::list getLocalProcesses() /////////////////////////////////////////////////////////////////////////////// +std::wstring getHostProcessPath() +{ + AutoRestorePyState pystate; + + std::vector fileNameBuffer(0x1000); + + DWORD fileNameSize = GetModuleFileNameW(NULL, &fileNameBuffer.front(), fileNameBuffer.size() ); + + return std::wstring(&fileNameBuffer.front(), fileNameSize); +} + +/////////////////////////////////////////////////////////////////////////////// + python::tuple getBugCheckData() { kdlib::SystemCrashInfo crashInfo = {}; diff --git a/pykd/pydbgeng.h b/pykd/pydbgeng.h index 3e37472..652fbe1 100644 --- a/pykd/pydbgeng.h +++ b/pykd/pydbgeng.h @@ -293,6 +293,7 @@ inline void setImplicitProcess(kdlib::MEMOFFSET_64 offset) AutoRestorePyState pystate; kdlib::setImplicitProcess(offset); } + inline kdlib::MEMOFFSET_64 getImplicitProcessOffset() { AutoRestorePyState pystate; @@ -304,6 +305,8 @@ python::list getProcessThreads(); python::list getTargetProcesses(); python::list getLocalProcesses(); +std::wstring getHostProcessPath(); + /////////////////////////////////////////////////////////////////////////////// inline diff --git a/pykd/pykdver.h b/pykd/pykdver.h index f15c478..199ac5e 100644 --- a/pykd/pykdver.h +++ b/pykd/pykdver.h @@ -2,7 +2,7 @@ #define PYKD_VERSION_MAJOR 0 #define PYKD_VERSION_MINOR 3 #define PYKD_VERSION_SUBVERSION 4 -#define PYKD_VERSION_BUILDNO 7 +#define PYKD_VERSION_BUILDNO 8 #define __VER_STR2__(x) #x #define __VER_STR1__(x) __VER_STR2__(x)