This commit is contained in:
kudzu_cp 2010-09-04 17:24:52 +00:00
parent 3f76543f9a
commit ee076acdac
5 changed files with 31 additions and 3 deletions

View file

@ -1,4 +1,6 @@
using System;
using FirebirdSql.Data.FirebirdClient;
using FirebirdSql.Data.Isql;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -31,7 +33,26 @@ namespace Cosmos.Debug.Common.CDebugger
}
public class MLDebugSymbol {
protected static void CreateCPDB(string aPathname) {
var xCSB = new FbConnectionStringBuilder();
xCSB.ServerType = FbServerType.Embedded;
xCSB.Database = @"m:\temp\Cosmos.cpdb";
FbConnection.CreateDatabase(xCSB.ToString());
using (var xConn = new FbConnection(xCSB.ToString())) {
var xExec = new FbBatchExecution(xConn);
//foreach (string cmd in script.Results) {
// xExec.SqlStatements.Add(cmd);
//}
//fbe.Execute();
}
}
public static void WriteSymbolsListToFile(IEnumerable<MLDebugSymbol> aSymbols, string aFile) {
CreateCPDB(Path.ChangeExtension(aFile, ".cpdb"));
var xDS = new SymbolsDS();
// This is a dataset and XML currently.
// Later change it to a real DB as we don't need it in RAM all at once but we need it to be fast.

View file

@ -121,7 +121,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="fbclient.dll">
<None Include="fbembed.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="icudt30.dll">

View file

@ -11,7 +11,8 @@
<RootNamespace>FBTest</RootNamespace>
<AssemblyName>FBTest</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
@ -56,6 +57,9 @@
<Name>Cosmos.Debug.Common2010</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\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.

View file

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>