Beispiel #1
0
        private static void AppendStackFrame(Project project, ListView view, Int32 callDepth, IntPtr pc)
        {
            SourceFileSegment segment;

            project.GetLineSegment(out segment, pc);

            string module, function, comments;

            if (segment.Function.Name == null)
            {
                module   = "<Unknown module>";
                function = "<Unknown function>";
                comments = "";
            }
            else
            {
                module   = segment.Source.Name;
                function = segment.Function.Name;
                comments = "";
            }

            var s = new CallStackViewItem {
                Module = module, Function = function, Comments = comments, CallDepth = callDepth, PC = pc
            };
            var item = new ListViewItem {
                Content = s
            };

            view.Items.Add(item);
        }
 public static void Populate(ListView callStackView, TreeView itemView, Project project, CallStackViewItem item)
 {
     Populate(callStackView, itemView, project, item.CallDepth);
 }