Exemplo n.º 1
0
        internal DbgTarget(DbgEngDebugger debugger,
                           DbgEngContext context,
                           string targetFriendlyName)
            : base(debugger)
        {
            if ((bool)context.IsKernelContext)
            {
                Context = context.AsSystemContext();
            }
            else
            {
                Context = context.AsProcessContext();
            }

            IsLive = Debugger.IsLive;
            m_targetFriendlyName = targetFriendlyName;
        } // end constructor
Exemplo n.º 2
0
        protected DbgFunction(DbgEngDebugger debugger,
                              DbgEngContext context,
                              ulong address,
                              string name)
            : base(debugger)
        {
            if (String.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("You must specify a name.", "name");
            }

            if (null == context)
            {
                throw new ArgumentNullException("context");
            }

            // We don't actually want thread/frame info in the context, I think. We just
            // want enough to identify what address space it refers to.
            Context = context.AsProcessContext();
            Address = address;
            Name    = name;
        } // end constructor()