| 1571 | } |
| 1572 | |
| 1573 | static int CheckBreakpointsDmaToOrFromMemory (int idx) |
| 1574 | { |
| 1575 | if (idx == -1) |
| 1576 | { |
| 1577 | int res = 0; |
| 1578 | for (int i = 0; i < NUM_BREAK_ON_DMA; i++) |
| 1579 | res |= g_DebugBreakOnDMA[i].isToOrFromMemory; |
| 1580 | return res; |
| 1581 | } |
| 1582 | |
| 1583 | _ASSERT(idx < NUM_BREAK_ON_DMA); |
| 1584 | if (idx >= NUM_BREAK_ON_DMA) |
| 1585 | return 0; |
| 1586 | |
| 1587 | int res = g_DebugBreakOnDMA[idx].isToOrFromMemory; |
| 1588 | g_DebugBreakOnDMA[idx].isToOrFromMemory = 0; |
| 1589 | return res; |
| 1590 | } |
| 1591 | |
| 1592 | static void DebuggerBreakOnDma (WORD nAddress, WORD nSize, bool isDmaToMemory, int iBreakpoint) |
| 1593 | { |
no outgoing calls
no test coverage detected