Commit bdd85af4 authored by ussrhero's avatar ussrhero

Merge branch 'speedup-readMemory' into 'dev-1.0'

remove slowdown code

See merge request kdlibcpp/kdlibcpp!2
parents f10481a4 57369310
......@@ -344,6 +344,10 @@ PROCESS_DEBUG_ID loadDump( const std::wstring &fileName )
if ( FAILED( hres ) )
throw DbgEngException( L"IDebugControl::WaitForEvent", hres );
hres = g_dbgMgr->control->OutputCurrentState(DEBUG_OUTCTL_IGNORE, DEBUG_CURRENT_SYMBOL);
if (FAILED(hres))
throw DbgEngException(L"IDebugControl::OutputCurrentState", hres);
ULONG processId = -1;
hres = g_dbgMgr->system->GetCurrentProcessId( &processId );
if ( FAILED( hres ) )
......
......@@ -58,12 +58,6 @@ void readMemory( MEMOFFSET_64 offset, void* buffer, size_t length, bool phyAddr,
{
offset = addr64( offset );
// workitem/10473 workaround
ULONG64 nextAddress;
hres = g_dbgMgr->dataspace->GetNextDifferentlyValidOffsetVirtual( offset, &nextAddress );
DBG_UNREFERENCED_LOCAL_VARIABLE(nextAddress);
hres = g_dbgMgr->dataspace->ReadVirtual( offset, buffer, numeric_cast<ULONG>(length), readed );
}
else
......
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