mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-05-07 17:43:24 +08:00
24 lines
449 B
C++
24 lines
449 B
C++
#include "stdafx.h"
|
|
|
|
#include "dbgsession.h"
|
|
#include "dbgext.h"
|
|
|
|
DbgExt dbgGlobalSession = { 0 };
|
|
|
|
bool dbgSessionStarted = false;
|
|
|
|
void
|
|
dbgCreateSession()
|
|
{
|
|
IDebugClient4 *client = NULL;
|
|
DebugCreate( __uuidof(IDebugClient4), (void **)&client );
|
|
|
|
SetupDebugEngine( client, &dbgGlobalSession );
|
|
dbgExt = &dbgGlobalSession;
|
|
}
|
|
|
|
bool
|
|
dbgIsSessionStart()
|
|
{
|
|
return dbgSessionStarted;
|
|
} |