public InspectionScope GetScope(DkmClrInstructionAddress address)
        {
            // Cache the various scopes used during the inspection session.  Different scopes are
            // used when the user selects different frames and when the debug engine asks us to
            // format each stack frame.
            InspectionScope scope;
            if (!_scopes.TryGetValue(address, out scope))
            {
                scope = new InspectionScope(address, this);
                _scopes.Add(address, scope);
            }

            return scope;
        }
Exemplo n.º 2
0
        public InspectionScope GetScope(DkmClrInstructionAddress address)
        {
            // Cache the various scopes used during the inspection session.  Different scopes are
            // used when the user selects different frames and when the debug engine asks us to
            // format each stack frame.
            InspectionScope scope;

            if (!_scopes.TryGetValue(address, out scope))
            {
                scope = new InspectionScope(address, this);
                _scopes.Add(address, scope);
            }

            return(scope);
        }