SetPassCount() public method

Sets the count and conditions upon which a breakpoint is fired. (http://msdn.microsoft.com/en-us/library/bb161364.aspx)
public SetPassCount ( BP_PASSCOUNT bpPassCount ) : int
bpPassCount BP_PASSCOUNT Describes the count and conditions upon which a conditional breakpoint is fired.
return int
Exemplo n.º 1
0
        // 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;
        }