Author: jbevain
Date: 2006-09-19 17:30:24 -0400 (Tue, 19 Sep 2006)
New Revision: 65688

Added:
   trunk/cecil/pdb/
   trunk/cecil/pdb/ChangeLog
   trunk/cecil/pdb/Mono.Cecil.Pdb.csproj
   trunk/cecil/pdb/Mono.Cecil.Pdb/
   trunk/cecil/pdb/Mono.Cecil.Pdb/AssemblyInfo.cs
   trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataDispenser.cs
   trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataImport.cs
   trunk/cecil/pdb/Mono.Cecil.Pdb/PdbFactory.cs
   trunk/cecil/pdb/Mono.Cecil.Pdb/PdbHelper.cs
   trunk/cecil/pdb/Mono.Cecil.Pdb/PdbReader.cs
   trunk/cecil/pdb/Mono.Cecil.Pdb/PdbWriter.cs
Log:
2006-09-19  Jb Evain  <[EMAIL PROTECTED]>

        * first checkin in SVN:
                This is the assembly to support reading and writing
                from Microsoft's pdb symbols store.

                It will only work on Windows until Microsoft release
                the spec for the pdb files.


Added: trunk/cecil/pdb/ChangeLog
===================================================================
--- trunk/cecil/pdb/ChangeLog   2006-09-19 21:24:38 UTC (rev 65687)
+++ trunk/cecil/pdb/ChangeLog   2006-09-19 21:30:24 UTC (rev 65688)
@@ -0,0 +1,8 @@
+2006-09-19  Jb Evain  <[EMAIL PROTECTED]>
+
+       * first checkin in SVN:
+               This is the assembly to support reading and writing
+               from Microsoft's pdb symbols store.
+
+               It will only work on Windows until Microsoft release
+               the spec for the pdb files.


Property changes on: trunk/cecil/pdb/ChangeLog
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Added: trunk/cecil/pdb/Mono.Cecil.Pdb/AssemblyInfo.cs
===================================================================
--- trunk/cecil/pdb/Mono.Cecil.Pdb/AssemblyInfo.cs      2006-09-19 21:24:38 UTC 
(rev 65687)
+++ trunk/cecil/pdb/Mono.Cecil.Pdb/AssemblyInfo.cs      2006-09-19 21:30:24 UTC 
(rev 65688)
@@ -0,0 +1,43 @@
+//
+// AssemblyInfo.cs
+//
+// Author:
+//   Jb Evain ([EMAIL PROTECTED])
+//
+// (C) 2006 Jb Evain
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle ("Mono.Cecil.PdbSupport")]
+[assembly: AssemblyDescription ("Support for the pdb symbols store in Cecil")]
+[assembly: AssemblyConfiguration ("")]
+[assembly: AssemblyProduct("Mono.Cecil.PdbSupport")]
+[assembly: AssemblyCopyright ("(C) 2006, Jb Evain")]
+[assembly: AssemblyCulture ("")]
+
+[assembly: CLSCompliant (false)]
+[assembly: ComVisible (false)]
+
+[assembly: AssemblyVersion ("0.0.1.0")]


Property changes on: trunk/cecil/pdb/Mono.Cecil.Pdb/AssemblyInfo.cs
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Added: trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataDispenser.cs
===================================================================
--- trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataDispenser.cs        2006-09-19 
21:24:38 UTC (rev 65687)
+++ trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataDispenser.cs        2006-09-19 
21:30:24 UTC (rev 65688)
@@ -0,0 +1,49 @@
+//
+// IMetadataImport.cs
+//
+// Author:
+//   Jb Evain ([EMAIL PROTECTED])
+//
+// (C) 2006 Jb Evain
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+// from: http://blogs.msdn.com/jmstall/articles/sample_pdb2xml.aspx
+
+namespace Mono.Cecil.Pdb {
+
+       using System;
+       using System.Runtime.InteropServices;
+
+       [Guid ("809c652e-7396-11d2-9771-00a0c9b4d50c")]
+       [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
+       [ComVisible (true)]
+       interface IMetaDataDispenser {
+
+               void DefineScope_Placeholder();
+
+               void OpenScope (
+                       [In, MarshalAs (UnmanagedType.LPWStr)] string szScope,
+                       [In] int dwOpenFlags,
+                       [In] ref Guid riid,
+                       [Out, MarshalAs (UnmanagedType.IUnknown)] out object 
punk);
+       }
+}


Property changes on: trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataDispenser.cs
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Added: trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataImport.cs
===================================================================
--- trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataImport.cs   2006-09-19 21:24:38 UTC 
(rev 65687)
+++ trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataImport.cs   2006-09-19 21:30:24 UTC 
(rev 65688)
@@ -0,0 +1,43 @@
+//
+// IMetadataImport.cs
+//
+// Author:
+//   Jb Evain ([EMAIL PROTECTED])
+//
+// (C) 2006 Jb Evain
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+// from: http://blogs.msdn.com/jmstall/articles/sample_pdb2xml.aspx
+
+namespace Mono.Cecil.Pdb {
+
+       using System;
+       using System.Runtime.InteropServices;
+
+       [Guid ("7DAC8207-D3AE-4c75-9B67-92801A497D44")]
+       [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
+       [ComVisible (true)]
+       [CLSCompliant (true)]
+       public interface IMetadataImport {
+               void Placeholder();
+       }
+}


Property changes on: trunk/cecil/pdb/Mono.Cecil.Pdb/IMetadataImport.cs
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Added: trunk/cecil/pdb/Mono.Cecil.Pdb/PdbFactory.cs
===================================================================
--- trunk/cecil/pdb/Mono.Cecil.Pdb/PdbFactory.cs        2006-09-19 21:24:38 UTC 
(rev 65687)
+++ trunk/cecil/pdb/Mono.Cecil.Pdb/PdbFactory.cs        2006-09-19 21:30:24 UTC 
(rev 65688)
@@ -0,0 +1,45 @@
+//
+// PdbFactory.cs
+//
+// Author:
+//   Jb Evain ([EMAIL PROTECTED])
+//
+// (C) 2006 Jb Evain
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace Mono.Cecil.Pdb {
+
+       using Mono.Cecil.Cil;
+
+       public class PdbFactory : ISymbolStoreFactory {
+
+               public ISymbolReader CreateReader (string assemblyFilename)
+               {
+                       return new PdbReader (PdbHelper.CreateReader 
(assemblyFilename));
+               }
+
+               public ISymbolWriter CreateWriter (string assemblyFilename)
+               {
+                       return new PdbWriter (assemblyFilename);
+               }
+       }
+}


Property changes on: trunk/cecil/pdb/Mono.Cecil.Pdb/PdbFactory.cs
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Added: trunk/cecil/pdb/Mono.Cecil.Pdb/PdbHelper.cs
===================================================================
--- trunk/cecil/pdb/Mono.Cecil.Pdb/PdbHelper.cs 2006-09-19 21:24:38 UTC (rev 
65687)
+++ trunk/cecil/pdb/Mono.Cecil.Pdb/PdbHelper.cs 2006-09-19 21:30:24 UTC (rev 
65688)
@@ -0,0 +1,79 @@
+//
+// PdbHelper.cs
+//
+// Author:
+//   Jb Evain ([EMAIL PROTECTED])
+//
+// (C) 2006 Jb Evain
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+// from: http://blogs.msdn.com/jmstall/articles/sample_pdb2xml.aspx
+
+namespace Mono.Cecil.Pdb {
+
+       using System;
+       using System.Diagnostics.SymbolStore;
+       using System.Runtime.InteropServices;
+
+       internal class PdbHelper {
+
+               [DllImport("ole32.dll")]
+               static extern int CoCreateInstance (
+                       [In] ref Guid rclsid,
+                       [In, MarshalAs (UnmanagedType.IUnknown)] object 
pUnkOuter,
+                       [In] uint dwClsContext,
+                       [In] ref Guid riid,
+                       [Out, MarshalAs(UnmanagedType.Interface)] out object 
ppv);
+
+               static Guid s_dispenserClassID = new Guid (0xe5cb7a31, 0x7512, 
0x11d2, 0x89, 0xce, 0x00, 0x80, 0xc7, 0x92, 0xe5, 0xd8);
+               static Guid s_dispenserIID = new Guid (0x809c652e, 0x7396, 
0x11d2, 0x97, 0x71, 0x00, 0xa0, 0xc9, 0xb4, 0xd5, 0x0c);
+               static Guid s_importerIID = new Guid (0x7dac8207, 0xd3ae, 
0x4c75, 0x9b, 0x67, 0x92, 0x80, 0x1a, 0x49, 0x7d, 0x44);
+
+               public static ISymbolReader CreateReader (string filename)
+               {
+                       SymBinder binder = new SymBinder ();
+                       object objDispenser, objImporter;
+                       CoCreateInstance (ref s_dispenserClassID, null, 1, ref 
s_dispenserIID, out objDispenser);
+
+                       IMetaDataDispenser dispenser = (IMetaDataDispenser) 
objDispenser;
+                       dispenser.OpenScope (filename, 0, ref s_importerIID, 
out objImporter);
+
+                       IntPtr importerPtr = IntPtr.Zero;
+            ISymbolReader reader;
+                       try {
+                               importerPtr = Marshal.GetComInterfaceForObject 
(objImporter, typeof (IMetadataImport));
+
+                               reader = binder.GetReader (importerPtr, 
filename, null);
+                       } finally {
+                               if (importerPtr != IntPtr.Zero)
+                                       Marshal.Release (importerPtr);
+                       }
+
+                       return reader;
+               }
+
+               public static ISymbolWriter CreateWriter (string filename)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}


Property changes on: trunk/cecil/pdb/Mono.Cecil.Pdb/PdbHelper.cs
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Added: trunk/cecil/pdb/Mono.Cecil.Pdb/PdbReader.cs
===================================================================
--- trunk/cecil/pdb/Mono.Cecil.Pdb/PdbReader.cs 2006-09-19 21:24:38 UTC (rev 
65687)
+++ trunk/cecil/pdb/Mono.Cecil.Pdb/PdbReader.cs 2006-09-19 21:30:24 UTC (rev 
65688)
@@ -0,0 +1,123 @@
+//
+// PdbReader.cs
+//
+// Author:
+//   Jb Evain ([EMAIL PROTECTED])
+//
+// (C) 2006 Jb Evain
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace Mono.Cecil.Pdb {
+
+       using System.Collections;
+       using System.Diagnostics.SymbolStore;
+
+       public class PdbReader : Cil.ISymbolReader {
+
+               ISymbolReader m_reader;
+
+               Hashtable m_documents;
+
+               internal PdbReader (ISymbolReader reader)
+               {
+                       m_reader = reader;
+                       m_documents = new Hashtable ();
+               }
+
+               public void Read (Cil.MethodBody body)
+               {
+                       try {
+                               ISymbolMethod method = m_reader.GetMethod (new 
SymbolToken ((int) body.Method.MetadataToken.ToUInt ()));
+                               Hashtable instructions = GetInstructions (body);
+
+                               ReadSequencePoints (method, instructions);
+                               ReadScopeAndLocals (method.RootScope, null, 
body, instructions);
+                       } catch {}
+               }
+
+               Hashtable GetInstructions (Cil.MethodBody body)
+               {
+                       Hashtable instructions = new Hashtable 
(body.Instructions.Count);
+                       foreach (Cil.Instruction i in body.Instructions)
+                               instructions.Add (i.Offset, i);
+
+                       return instructions;
+               }
+
+               void ReadScopeAndLocals (ISymbolScope scope, Cil.Scope parent, 
Cil.MethodBody body, Hashtable instructions)
+               {
+                       Cil.Scope s = new Cil.Scope ();
+                       s.Start = (Cil.Instruction) instructions 
[scope.StartOffset];
+                       s.End = (Cil.Instruction) instructions 
[scope.EndOffset];
+
+                       if (parent != null)
+                               parent.Scopes.Add (s);
+                       else
+                               body.Scopes.Add (s);
+
+                       foreach (ISymbolVariable local in scope.GetLocals ()) {
+                               Cil.VariableDefinition variable = 
body.Variables [local.AddressField1];
+                               variable.Name = local.Name;
+
+                               s.Variables.Add (variable);
+                       }
+
+                       foreach (ISymbolScope child in scope.GetChildren ())
+                               ReadScopeAndLocals (child, s, body, 
instructions);
+               }
+
+               void ReadSequencePoints(ISymbolMethod method, Hashtable 
instructions)
+               {
+                       int count = method.SequencePointCount;
+                       int [] offsets = new int [count];
+                       ISymbolDocument [] docs = new ISymbolDocument [count];
+                       int [] startColumn = new int [count];
+                       int [] endColumn = new int [count];
+                       int [] startRow = new int [count];
+                       int [] endRow = new int [count];
+                       method.GetSequencePoints (offsets, docs, startRow, 
startColumn, endRow, endColumn);
+
+                       for (int i = 0; i < offsets.Length; i++) {
+                               Cil.Instruction instr = (Cil.Instruction) 
instructions [offsets [i]];
+
+                               Cil.SequencePoint sp = new Cil.SequencePoint 
(GetDocument (docs [i]));
+                               sp.StartLine = startRow [i];
+                               sp.StartColumn = startColumn [i];
+                               sp.EndLine = endRow [i];
+                               sp.EndColumn = endRow [i];
+
+                               instr.SequencePoint = sp;
+                       }
+               }
+
+               Cil.Document GetDocument (ISymbolDocument document)
+               {
+                       Cil.Document doc = m_documents [document.URL] as 
Cil.Document;
+                       if (doc != null)
+                               return doc;
+
+                       doc = new Cil.Document (document.URL);
+                       m_documents [doc.Url] = doc;
+                       return doc;
+               }
+       }
+}


Property changes on: trunk/cecil/pdb/Mono.Cecil.Pdb/PdbReader.cs
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Added: trunk/cecil/pdb/Mono.Cecil.Pdb/PdbWriter.cs
===================================================================
--- trunk/cecil/pdb/Mono.Cecil.Pdb/PdbWriter.cs 2006-09-19 21:24:38 UTC (rev 
65687)
+++ trunk/cecil/pdb/Mono.Cecil.Pdb/PdbWriter.cs 2006-09-19 21:30:24 UTC (rev 
65688)
@@ -0,0 +1,46 @@
+//
+// PdbWriter.cs
+//
+// Author:
+//   Jb Evain ([EMAIL PROTECTED])
+//
+// (C) 2006 Jb Evain
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace Mono.Cecil.Pdb {
+
+       using System;
+
+       using Mono.Cecil.Cil;
+
+       public class PdbWriter : ISymbolWriter {
+
+               internal PdbWriter (string filename)
+               {
+               }
+
+               public void Write (MethodBody body)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}


Property changes on: trunk/cecil/pdb/Mono.Cecil.Pdb/PdbWriter.cs
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Added: trunk/cecil/pdb/Mono.Cecil.Pdb.csproj
===================================================================
--- trunk/cecil/pdb/Mono.Cecil.Pdb.csproj       2006-09-19 21:24:38 UTC (rev 
65687)
+++ trunk/cecil/pdb/Mono.Cecil.Pdb.csproj       2006-09-19 21:30:24 UTC (rev 
65688)
@@ -0,0 +1,59 @@
+<Project DefaultTargets="Build" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{4FEBBB25-D5C0-48F0-A822-2E0D6F3D777E}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Mono.Cecil.Pdb</RootNamespace>
+    <AssemblyName>Mono.Cecil.Pdb</AssemblyName>
+    <StartupObject>
+    </StartupObject>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' 
">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 
'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets 
below and uncomment it.
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+  <ItemGroup>
+    <ProjectReference Include="..\lib\Mono.Cecil.csproj">
+      <Project>{D8F63DFF-5230-43E4-9AB2-DA6E721A1FAE}</Project>
+      <Name>Mono.Cecil</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Mono.Cecil.Pdb\AssemblyInfo.cs" />
+    <Compile Include="Mono.Cecil.Pdb\IMetadataDispenser.cs" />
+    <Compile Include="Mono.Cecil.Pdb\IMetadataImport.cs" />
+    <Compile Include="Mono.Cecil.Pdb\PdbFactory.cs" />
+    <Compile Include="Mono.Cecil.Pdb\PdbReader.cs" />
+    <Compile Include="Mono.Cecil.Pdb\PdbWriter.cs" />
+    <Compile Include="Mono.Cecil.Pdb\PdbHelper.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Reference Include="ISymWrapper" />
+    <Reference Include="System" />
+  </ItemGroup>
+</Project>
\ No newline at end of file


Property changes on: trunk/cecil/pdb/Mono.Cecil.Pdb.csproj
___________________________________________________________________
Name: svn:executable
   + *

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to