~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerBacktrace.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
                        string method = frame.Method.Name;
82
82
                        if (frame.Method.DeclaringType != null)
83
83
                                method = frame.Method.DeclaringType.FullName + "." + method;
84
 
                        var location = new DC.SourceLocation (method, frame.FileName, frame.LineNumber);
 
84
                        var location = new DC.SourceLocation (method, SoftDebuggerSession.NormalizePath (frame.FileName), frame.LineNumber);
85
85
                        var lang = frame.Method != null? "Managed" : "Native";
86
 
                        return new DC.StackFrame (frame.ILOffset, location, lang, session.IsExternalCode (frame), true);
 
86
                        return new DC.StackFrame (frame.ILOffset, frame.Method.FullName, location, lang, session.IsExternalCode (frame), true);
87
87
                }
88
88
                
89
89
                protected override EvaluationContext GetEvaluationContext (int frameIndex, EvaluationOptions options)
92
92
                        MDB.StackFrame frame = frames [frameIndex];
93
93
                        return new SoftEvaluationContext (session, frame, options);
94
94
                }
 
95
                
 
96
                public override AssemblyLine[] Disassemble (int frameIndex, int firstLine, int count)
 
97
                {
 
98
                        return session.Disassemble (frames [frameIndex], firstLine, count);
 
99
                }
95
100
        }
96
101
}