Exemple #1
0
				public static DebugStackFrameMarker Create(TextMarkerService svc, DebugEngineWrapper.StackFrame frm)
				{
					string fn;
					uint ln;
					ulong off = frm.InstructionOffset;
					if (Engine.Symbols.GetLineByOffset(off, out fn, out ln))
					{
						var text_off = svc.Editor.Document.GetOffset((int)ln, 0);

						var m = new DebugStackFrameMarker(svc, frm, text_off);
						m.Redraw();

						return m;
					}
					return null;
				}
Exemple #2
0
                public static DebugStackFrameMarker Create(TextMarkerService svc, DebugEngineWrapper.StackFrame frm)
                {
                    string fn;
                    uint   ln;
                    ulong  off = frm.InstructionOffset;

                    if (Engine.Symbols.GetLineByOffset(off, out fn, out ln))
                    {
                        var text_off = svc.Editor.Document.GetOffset((int)ln, 0);

                        var m = new DebugStackFrameMarker(svc, frm, text_off);
                        m.Redraw();

                        return(m);
                    }
                    return(null);
                }