MCPcopy Create free account
hub / github.com/WheretIB/nullc / nullcDebugAddBreakpointImpl

Function nullcDebugAddBreakpointImpl

NULLC/nullc.cpp:1157–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1155}
1156
1157nullres nullcDebugAddBreakpointImpl(unsigned int instruction, bool oneHit)
1158{
1159 using namespace NULLC;
1160
1161 if(!executor)
1162 {
1163 nullcLastError = "ERROR: NULLC is not initialized";
1164 return false;
1165 }
1166 if(!executor->AddBreakpoint(instruction, oneHit))
1167 {
1168 nullcLastError = executor->GetExecError();
1169 return false;
1170 }
1171#ifdef NULLC_BUILD_X86_JIT
1172 if(!executorX86)
1173 {
1174 nullcLastError = "ERROR: NULLC is not initialized";
1175 return false;
1176 }
1177 if(!executorX86->AddBreakpoint(instruction, oneHit))
1178 {
1179 nullcLastError = executorX86->GetExecError();
1180 return false;
1181 }
1182#endif
1183 return true;
1184}
1185
1186nullres nullcDebugAddBreakpoint(unsigned int instruction)
1187{

Callers 2

nullcDebugAddBreakpointFunction · 0.85

Calls 2

AddBreakpointMethod · 0.45
GetExecErrorMethod · 0.45

Tested by

no test coverage detected