public SetCondition ( BP_CONDITION bpCondition ) : int | ||
bpCondition | BP_CONDITION | Describes the conditions under which a breakpoint fires. |
Résultat | int |
// Reset current hit count public bool resetHitCount(AD7BoundBreakpoint bbp, bool resetCondition) { // Declare local Variables uint GDB_LinePos = 0; string GDB_Filename = ""; string GDB_address = ""; uint GDB_ID = bbp.GDB_ID; deleteBreakpoint(GDB_ID); bool ret = false; if (bbp.m_bpLocationType == (uint)enum_BP_LOCATION_TYPE.BPLT_CODE_FILE_LINE) { ret = setBreakpoint(bbp.m_filename, bbp.m_fullPath, bbp.m_line, out GDB_ID, out GDB_LinePos, out GDB_Filename, out GDB_address); } else if (bbp.m_bpLocationType == (uint)enum_BP_LOCATION_TYPE.BPLT_CODE_FUNC_OFFSET) { ret = setBreakpoint(bbp.m_func, out GDB_ID, out GDB_LinePos, out GDB_Filename, out GDB_address); } if (ret) { bbp.GDB_ID = GDB_ID; bbp.m_hitCount = 0; bbp.SetPassCount(bbp.m_bpPassCount); if (resetCondition) bbp.SetCondition(bbp.m_bpCondition); return true; } return false; }