Exemplo n.º 1
0
        public override AssemblyLine[] Disassemble(int frameIndex, int firstLine, int count)
        {
            CheckDisposed();
            if (disBuffers == null)
            {
                disBuffers = new MdbDissassemblyBuffer [frames.Length];
            }

            MD.StackFrame      frame  = frames [frameIndex];
            DissassemblyBuffer buffer = disBuffers [frameIndex];

            if (buffer == null)
            {
                buffer = new MdbDissassemblyBuffer(frame.Thread, frame.TargetAddress);
                disBuffers [frameIndex] = buffer;
            }

            return(buffer.GetLines(firstLine, firstLine + count - 1));
        }
		public override AssemblyLine[] Disassemble (int frameIndex, int firstLine, int count)
		{
			CheckDisposed ();
			if (disBuffers == null)
				disBuffers = new MdbDissassemblyBuffer [frames.Length];
			
			MD.StackFrame frame = frames [frameIndex];
			DissassemblyBuffer buffer = disBuffers [frameIndex];
			if (buffer == null) {
				buffer = new MdbDissassemblyBuffer (frame.Thread, frame.TargetAddress);
				disBuffers [frameIndex] = buffer;
			}
			
			return buffer.GetLines (firstLine, firstLine + count - 1);
		}