mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
Now using fetch on demand sourceinfos for stepping.
This commit is contained in:
parent
f9d157e7d3
commit
fbd802aaa7
1 changed files with 5 additions and 5 deletions
|
|
@ -41,11 +41,11 @@ namespace Cosmos.Debug.VSDebugEngine {
|
||||||
if (mHasSource = xProcess.mCurrentAddress.HasValue) {
|
if (mHasSource = xProcess.mCurrentAddress.HasValue) {
|
||||||
UInt32 xAddress = xProcess.mCurrentAddress.Value;
|
UInt32 xAddress = xProcess.mCurrentAddress.Value;
|
||||||
var xSourceInfos = xProcess.mDebugInfoDb.GetSourceInfos(xAddress);
|
var xSourceInfos = xProcess.mDebugInfoDb.GetSourceInfos(xAddress);
|
||||||
if (mHasSource = xProcess.mSourceInfos.ContainsKey(xAddress)) {
|
if (mHasSource = xSourceInfos.ContainsKey(xAddress)) {
|
||||||
var xSourceMapping = xProcess.mSourceInfos[xAddress];
|
var xSourceInfo = xSourceInfos[xAddress];
|
||||||
mDocName = xSourceMapping.SourceFile;
|
mDocName = xSourceInfo.SourceFile;
|
||||||
mFunctionName = xSourceMapping.MethodName;
|
mFunctionName = xSourceInfo.MethodName;
|
||||||
mLineNum = (uint)xSourceMapping.Line;
|
mLineNum = (uint)xSourceInfo.Line;
|
||||||
|
|
||||||
// Multiple labels that point to a single address can happen because of exception handling exits etc.
|
// 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.
|
// Because of this given an address, we might find more than one label that matches the address.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue