| 1155 | } |
| 1156 | |
| 1157 | nullres 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 | |
| 1186 | nullres nullcDebugAddBreakpoint(unsigned int instruction) |
| 1187 | { |
no test coverage detected