2003-01-09 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / Mono.CSharp.Debugger / MonoSymbolDocumentWriter.cs
1 //
2 // System.Diagnostics.SymbolStore/MonoSymbolDocumentWriter.cs
3 //
4 // Author:
5 //   Martin Baulig (martin@gnome.org)
6 //
7 // This is the default implementation of the
8 // System.Diagnostics.SymbolStore.ISymbolDocumentWriter interface.
9 //
10 // (C) 2002 Ximian, Inc.  http://www.ximian.com
11 //
12
13 using System;
14 using System.Reflection;
15 using System.Reflection.Emit;
16 using System.Diagnostics.SymbolStore;
17 using System.IO;
18         
19 namespace Mono.CSharp.Debugger
20 {
21
22         public class MonoSymbolDocumentWriter : ISymbolDocumentWriter
23         {
24                 protected string url;
25
26                 //
27                 // Constructor
28                 //
29                 public MonoSymbolDocumentWriter (string url)
30                 {
31                         this.url = url;
32                 }
33
34                 public string FileName {
35                         get {
36                                 return url;
37                         }
38                 }
39
40                 //
41                 // Interface ISymbolDocumentWriter
42                 //
43
44                 //
45                 // MonoSymbolWriter creates a DWARF 2 debugging file and DWARF operates
46                 // on file names, but has no way to include a whole source file in the
47                 // symbol file.
48                 //
49
50                 public void SetCheckSum (Guid algorithmId, byte[] checkSum)
51                 {
52                         throw new NotSupportedException ();
53                 }
54
55                 public void SetSource (byte[] source)
56                 {
57                         throw new NotSupportedException ();
58                 }
59         }
60 }