From fbd802aaa736aabc33a5ed395cb386971882f27c Mon Sep 17 00:00:00 2001 From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498> Date: Sun, 5 Aug 2012 16:49:35 +0000 Subject: [PATCH] Now using fetch on demand sourceinfos for stepping. --- .../AD7.Impl/AD7StackFrame.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7StackFrame.cs b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7StackFrame.cs index 83aaf5bc2..f4a65a345 100644 --- a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7StackFrame.cs +++ b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7StackFrame.cs @@ -41,11 +41,11 @@ namespace Cosmos.Debug.VSDebugEngine { if (mHasSource = xProcess.mCurrentAddress.HasValue) { UInt32 xAddress = xProcess.mCurrentAddress.Value; var xSourceInfos = xProcess.mDebugInfoDb.GetSourceInfos(xAddress); - if (mHasSource = xProcess.mSourceInfos.ContainsKey(xAddress)) { - var xSourceMapping = xProcess.mSourceInfos[xAddress]; - mDocName = xSourceMapping.SourceFile; - mFunctionName = xSourceMapping.MethodName; - mLineNum = (uint)xSourceMapping.Line; + if (mHasSource = xSourceInfos.ContainsKey(xAddress)) { + var xSourceInfo = xSourceInfos[xAddress]; + mDocName = xSourceInfo.SourceFile; + mFunctionName = xSourceInfo.MethodName; + mLineNum = (uint)xSourceInfo.Line; // Multiple labels that point to a single address can happen because of exception handling exits etc. // Because of this given an address, we might find more than one label that matches the address.