| 1770 | } |
| 1771 | |
| 1772 | void ExecutorX86::ClearBreakpoints() |
| 1773 | { |
| 1774 | for(unsigned i = 0; i < breakInstructions.size(); i++) |
| 1775 | { |
| 1776 | if(*instAddress[breakInstructions[i].instIndex] == 0xcc) |
| 1777 | *instAddress[breakInstructions[i].instIndex] = breakInstructions[i].oldOpcode; |
| 1778 | } |
| 1779 | breakInstructions.clear(); |
| 1780 | } |
| 1781 | |
| 1782 | bool ExecutorX86::AddBreakpoint(unsigned int instruction, bool oneHit) |
| 1783 | { |