2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / class / Mono.Debugger.Soft / Mono.Debugger.Soft / Location.cs
blob296ae1d871d1e5a925f45004b2983b013bebe556
1 using System;
3 namespace Mono.Debugger.Soft
5 public class Location : Mirror
7 MethodMirror method;
8 //long native_addr;
9 int il_offset;
10 string source_file;
11 int line_number;
12 //int column_number;
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;
23 public MethodMirror Method {
24 get {
25 return method;
29 public int ILOffset {
30 get {
31 return il_offset;
35 public string SourceFile {
36 get {
37 return source_file;
41 public int LineNumber {
42 get {
43 return line_number;
47 public override string ToString () {
48 return String.Format ("{0}+0x{1:x} at {2}:{3}", Method.FullName, ILOffset, SourceFile, LineNumber);