1
0
Fork 0

can use rtu (#1660)

This commit is contained in:
Torusrxxx 2017-07-27 16:24:01 +00:00 committed by Duncan Ogilvie
parent 7aef027ebc
commit 754ef54968
2 changed files with 6 additions and 6 deletions

View File

@ -102,6 +102,8 @@ bool cbDebugRunToParty(int argc, char* argv[])
dputs(QT_TRANSLATE_NOOP("DBG", "Run to party is busy.\n"));
return false;
}
if(IsArgumentsLessThan(argc, 2))
return false;
int party = atoi(argv[1]); // party is a signed integer
for(auto i : AllModules)
{
@ -112,8 +114,9 @@ bool cbDebugRunToParty(int argc, char* argv[])
BREAKPOINT bp;
if(!BpGet(j.addr, BPMEMORY, nullptr, &bp))
{
RunToUserCodeBreakpoints.push_back(std::make_pair(j.addr, j.size));
SetMemoryBPXEx(j.addr, j.size, UE_MEMORY_EXECUTE, false, (void*)cbRunToUserCodeBreakpoint);
size_t size = DbgMemGetPageSize(j.addr);
RunToUserCodeBreakpoints.push_back(std::make_pair(j.addr, size));
SetMemoryBPXEx(j.addr, size, UE_MEMORY_EXECUTE, false, (void*)cbRunToUserCodeBreakpoint);
}
}
}
@ -124,7 +127,7 @@ bool cbDebugRunToParty(int argc, char* argv[])
bool cbDebugRunToUserCode(int argc, char* argv[])
{
char* newargv[] = { "RunToParty", "0" };
return cbDebugRunToParty(argc, newargv);
return cbDebugRunToParty(2, newargv);
}
bool cbDebugTraceSetLog(int argc, char* argv[])

View File

@ -2030,9 +2030,6 @@ static void cbException(EXCEPTION_DEBUG_INFO* ExceptionData)
//update memory map
MemUpdateMap();
DebugUpdateGuiSetStateAsync(GetContextDataEx(hActiveThread, UE_CIP), true);
// Clear tracing conditions
dbgcleartracestate();
dbgClearRtuBreakpoints();
//lock
lock(WAITID_RUN);
// Plugin callback