Exemplo n.º 1
0
        public DkmStackWalkFrame[] FilterNextFrame(DkmStackContext stackContext, DkmStackWalkFrame input)
        {
            if (input == null)             // after last frame
            {
                return(null);
            }

            if (input.InstructionAddress == null)             // error case
            {
                return new[] { input }
            }
            ;

            if (input.InstructionAddress.ModuleInstance != null)             // code in existing module
            {
                return new[] { input }
            }
            ;

            var runner = new PmipRunner(stackContext, input);

            return(new[] { runner.PmipStackFrame() });
        }
    }
}
		public DkmStackWalkFrame[] FilterNextFrame(DkmStackContext stackContext, DkmStackWalkFrame input)
		{
			if (input == null) // after last frame
				return null;

			if (input.InstructionAddress == null) // error case
				return new[] { input };

			if (input.InstructionAddress.ModuleInstance != null) // code in existing module
				return new[] { input };

			var runner = new PmipRunner(stackContext, input);
			return new[] { runner.PmipStackFrame() };
		}