public override DbgModuleBreakpoint[] Add(DbgModuleBreakpointSettings[] settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }
            // Return a copy since the caller could modify the array
            var bps     = new DbgModuleBreakpoint[settings.Length];
            var bpImpls = new DbgModuleBreakpointImpl[settings.Length];

            for (int i = 0; i < bps.Length; i++)
            {
                var bp = new DbgModuleBreakpointImpl(this, Interlocked.Increment(ref moduleId), settings[i]);
                bps[i]     = bp;
                bpImpls[i] = bp;
            }
            Dbg(() => AddCore(bpImpls));
            return(bps);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="breakpoint">Breakpoint</param>
 /// <param name="settings">New settings</param>
 public DbgModuleBreakpointAndSettings(DbgModuleBreakpoint breakpoint, DbgModuleBreakpointSettings settings)
 {
     Breakpoint = breakpoint ?? throw new ArgumentNullException(nameof(breakpoint));
     Settings   = settings;
 }
Ejemplo n.º 3
0
 internal void WriteOrder(ITextColorWriter output, DbgModuleBreakpoint bp) => WriteInt32Decimal(output, bp.Order);
Ejemplo n.º 4
0
 internal void WriteAppDomainName(ITextColorWriter output, DbgModuleBreakpoint bp) => output.Write(BoxedTextColor.String, bp.AppDomainName ?? string.Empty);
Ejemplo n.º 5
0
 internal void WriteInMemory(ITextColorWriter output, DbgModuleBreakpoint bp) => WriteBoolean(output, bp.IsInMemory);
Ejemplo n.º 6
0
 internal void WriteDynamic(ITextColorWriter output, DbgModuleBreakpoint bp) => WriteBoolean(output, bp.IsDynamic);
Ejemplo n.º 7
0
 internal void WriteIsEnabled(ITextColorWriter output, DbgModuleBreakpoint bp) => WriteBoolean(output, bp.IsEnabled);
 internal void WriteProcessName(IDbgTextWriter output, DbgModuleBreakpoint bp) => output.Write(DbgTextColor.String, bp.ProcessName ?? string.Empty);
Ejemplo n.º 9
0
 internal void WriteLoadModule(IDbgTextWriter output, DbgModuleBreakpoint bp) => WriteBoolean(output, bp.IsLoaded);