| 1590 | } |
| 1591 | |
| 1592 | static void DebuggerBreakOnDma (WORD nAddress, WORD nSize, bool isDmaToMemory, int iBreakpoint) |
| 1593 | { |
| 1594 | for (int i = 0; i < NUM_BREAK_ON_DMA; i++) |
| 1595 | { |
| 1596 | if (g_DebugBreakOnDMA[i].isToOrFromMemory != 0) |
| 1597 | continue; |
| 1598 | |
| 1599 | g_DebugBreakOnDMA[i].isToOrFromMemory = isDmaToMemory ? BP_DMA_TO_MEM : BP_DMA_FROM_MEM; |
| 1600 | g_DebugBreakOnDMA[i].memoryAddr = nAddress; |
| 1601 | g_DebugBreakOnDMA[i].memoryAddrEnd = nAddress + nSize - 1; |
| 1602 | g_DebugBreakOnDMA[i].BPid = iBreakpoint; |
| 1603 | return; |
| 1604 | } |
| 1605 | |
| 1606 | _ASSERT(0); |
| 1607 | } |
| 1608 | |
| 1609 | //=========================================================================== |
| 1610 | Update_t CmdBreakpoint (int nArgs) |
no outgoing calls
no test coverage detected