Commit e1708cdb authored by ussrhero's avatar ussrhero
Browse files

added getOutputMask

parent a281002c
......@@ -41,6 +41,9 @@ NumVariant evaluate( const std::wstring &expression, bool cplusplus=false );
DebugOptionsSet getDebugOptions();
void changeDebugOptions(const DebugOptionsSet &addOptions, const DebugOptionsSet &removeOptions);
OutputFlagsSet getOutputFlags();
void setOutputFlags(const OutputFlagsSet &flags);
// system properties
size_t ptrSize();
bool is64bitSystem();
......
......@@ -227,6 +227,8 @@ enum OutputFlag
All = 0x000007FF
};
typedef unsigned long OutputFlagsSet;
///////////////////////////////////////////////////////////////////////////////
} // kdlib namespace end
......
......@@ -181,6 +181,28 @@ void changeDebugOptions(const DebugOptionsSet &addOptions, const DebugOptionsSet
///////////////////////////////////////////////////////////////////////////////
OutputFlagsSet getOutputFlags()
{
OutputFlagsSet outputFlags = 0;
HRESULT hres = g_dbgMgr->client->GetOutputMask(&outputFlags);
if (FAILED(hres))
throw DbgEngException(L"IDebugClient::GetOutputMask", hres);
return outputFlags;
}
///////////////////////////////////////////////////////////////////////////////
void setOutputFlags(const OutputFlagsSet &flags)
{
HRESULT hres = g_dbgMgr->client->SetOutputMask(flags);
if (FAILED(hres))
throw DbgEngException(L"IDebugClient::SetOutputMask", hres);
}
///////////////////////////////////////////////////////////////////////////////
static void setEngBreakOption(const ProcessDebugFlags& flags)
{
DebugOptionsSet addOptions = 0;
......
......@@ -40,7 +40,7 @@ DebugManager::DebugManager()
client->SetOutputCallbacksWide(this);
client->SetInputCallbacks(this);
client->SetOutputMask(0xFFFFFFFF); // DEBUG_OUTPUT_NORMAL);
client->SetOutputMask(DEBUG_OUTPUT_NORMAL);
}
///////////////////////////////////////////////////////////////////////////////
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment