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

« back to all changes in this revision

Viewing changes to src/core/Mono.Debugging/Mono.Debugging.Client/AssemblyLine.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:
35
35
                long address;
36
36
                string code;
37
37
                int sourceLine;
 
38
                string addressSpace;
38
39
                
39
40
                public string Code {
40
41
                        get {
48
49
                        }
49
50
                }
50
51
                
 
52
                public string AddressSpace {
 
53
                        get {
 
54
                                return addressSpace;
 
55
                        }
 
56
                }
 
57
                
51
58
                public int SourceLine {
52
59
                        get {
53
60
                                return sourceLine;
54
61
                        }
55
62
                }
56
63
                
57
 
                public AssemblyLine (long address, string code): this (address, code, -1)
58
 
                {
59
 
                }
60
 
                
61
 
                public AssemblyLine (long address, string code, int sourceLine)
 
64
                public bool IsOutOfRange {
 
65
                        get { return address == -1 && code == null; }
 
66
                }
 
67
                
 
68
                public static readonly AssemblyLine OutOfRange = new AssemblyLine (-1, null, null);
 
69
                
 
70
                public AssemblyLine (long address, string code): this (address, "", code, -1)
 
71
                {
 
72
                }
 
73
                
 
74
                public AssemblyLine (long address, string code, int sourceLine): this (address, "", code, sourceLine)
 
75
                {
 
76
                }
 
77
                
 
78
                public AssemblyLine (long address, string addressSpace, string code): this (address, addressSpace, code, -1)
 
79
                {
 
80
                }
 
81
                
 
82
                public AssemblyLine (long address, string addressSpace, string code, int sourceLine)
62
83
                {
63
84
                        this.address = address;
64
85
                        this.code = code;
65
86
                        this.sourceLine = sourceLine;
 
87
                        this.addressSpace = addressSpace;
66
88
                }
67
89
        }
68
90
}