コード例 #1
0
        public AssemblerMethod(Method method, AssemblerLine[] lines)
        {
            this.method = method;
            this.lines  = lines;
            addresses   = new ArrayList();

            ArrayList contents = new ArrayList();

            foreach (AssemblerLine line in lines)
            {
                if (line.Label != null)
                {
                    if (end_row > 0)
                    {
                        contents.Add("");
                        end_row++;
                    }
                    else
                    {
                        start_row++;
                    }
                    contents.Add(String.Format("{0}:", line.Label));
                    end_row++;
                }

                addresses.Add(new LineEntry(line.Address, 0, ++end_row));
                contents.Add(String.Format("  {0:x}   {1}", line.Address, line.Text));
            }

            string[] text = new string [contents.Count];
            contents.CopyTo(text);

            buffer = new SourceBuffer(method.Name, text);
        }
コード例 #2
0
 public SourceAddress(SourceFile file, SourceBuffer buffer, int row,
                      int line_offset, int line_range)
 {
     this.file        = file;
     this.buffer      = buffer;
     this.row         = row;
     this.line_offset = line_offset;
     this.line_range  = line_range;
 }
コード例 #3
0
ファイル: SourceAddress.cs プロジェクト: baulig/debugger
        public SourceAddress(SourceFile file, SourceBuffer buffer, int row,
				      int line_offset, int line_range)
        {
            this.file = file;
            this.buffer = buffer;
            this.row = row;
            this.line_offset = line_offset;
            this.line_range = line_range;
        }
コード例 #4
0
ファイル: AssemblerMethod.cs プロジェクト: baulig/debugger
        public AssemblerMethod(Method method, AssemblerLine[] lines)
        {
            this.method = method;
            this.lines = lines;
            addresses = new ArrayList ();

            ArrayList contents = new ArrayList ();
            foreach (AssemblerLine line in lines) {
                if (line.Label != null) {
                    if (end_row > 0) {
                        contents.Add ("");
                        end_row++;
                    } else
                        start_row++;
                    contents.Add (String.Format ("{0}:", line.Label));
                    end_row++;
                }

                addresses.Add (new LineEntry (line.Address, 0, ++end_row));
                contents.Add (String.Format ("  {0:x}   {1}", line.Address, line.Text));
            }

            string[] text = new string [contents.Count];
            contents.CopyTo (text);

            buffer = new SourceBuffer (method.Name, text);
        }
コード例 #5
0
 public SourceAddress(SourceFile file, SourceBuffer buffer, int row,
                      int line_offset, int line_range, SourceRange?source_range)
     : this(file, buffer, row, line_offset, line_range)
 {
     this.source_range = source_range;
 }
コード例 #6
0
            public WrapperMethodSource(WrapperMethod wrapper)
            {
                this.wrapper = wrapper;

                string[] cil_code = wrapper.Entry.CILCode.Split ('\n');
                buffer = new SourceBuffer (wrapper.Name, cil_code);
            }
コード例 #7
0
ファイル: SourceAddress.cs プロジェクト: baulig/debugger
        public SourceAddress(SourceFile file, SourceBuffer buffer, int row,
				      int line_offset, int line_range, SourceRange? source_range)
            : this(file, buffer, row, line_offset, line_range)
        {
            this.source_range = source_range;
        }