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

« back to all changes in this revision

Viewing changes to contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/Location.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:
 
1
using System;
 
2
 
 
3
namespace Mono.Debugger.Soft
 
4
{
 
5
        public class Location : Mirror
 
6
        {
 
7
                MethodMirror method;
 
8
                //long native_addr;
 
9
                int il_offset;
 
10
                string source_file;
 
11
                int line_number;
 
12
                //int column_number;
 
13
                
 
14
                internal Location (VirtualMachine vm, MethodMirror method, long native_addr, int il_offset, string source_file, int line_number, int column_number) : base (vm, 0) {
 
15
                        this.method = method;
 
16
                        //this.native_addr = native_addr;
 
17
                        this.il_offset = il_offset;
 
18
                        this.source_file = source_file;
 
19
                        this.line_number = line_number;
 
20
                        //this.column_number = column_number;
 
21
                }
 
22
 
 
23
                public MethodMirror Method {
 
24
                        get {
 
25
                                return method;
 
26
                        }
 
27
                }
 
28
 
 
29
                public int ILOffset {
 
30
                        get {
 
31
                                return il_offset;
 
32
                        }
 
33
                }
 
34
 
 
35
                public string SourceFile {
 
36
                        get {
 
37
                                return source_file;
 
38
                        }
 
39
            }
 
40
 
 
41
                public int LineNumber {
 
42
                        get {
 
43
                                return line_number;
 
44
                        }
 
45
            }
 
46
 
 
47
                public override string ToString () {
 
48
                        return String.Format ("{0}+0x{1:x} at {2}:{3}", Method.FullName, ILOffset, SourceFile, LineNumber);
 
49
                }
 
50
    }
 
51
}