mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
This commit is contained in:
parent
3f76543f9a
commit
ee076acdac
5 changed files with 31 additions and 3 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
using System;
|
using FirebirdSql.Data.FirebirdClient;
|
||||||
|
using FirebirdSql.Data.Isql;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
@ -31,7 +33,26 @@ namespace Cosmos.Debug.Common.CDebugger
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MLDebugSymbol {
|
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) {
|
public static void WriteSymbolsListToFile(IEnumerable<MLDebugSymbol> aSymbols, string aFile) {
|
||||||
|
CreateCPDB(Path.ChangeExtension(aFile, ".cpdb"));
|
||||||
|
|
||||||
var xDS = new SymbolsDS();
|
var xDS = new SymbolsDS();
|
||||||
// This is a dataset and XML currently.
|
// 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.
|
// 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.
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="fbclient.dll">
|
<None Include="fbembed.dll">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="icudt30.dll">
|
<None Include="icudt30.dll">
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@
|
||||||
<RootNamespace>FBTest</RootNamespace>
|
<RootNamespace>FBTest</RootNamespace>
|
||||||
<AssemblyName>FBTest</AssemblyName>
|
<AssemblyName>FBTest</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
<TargetFrameworkProfile>
|
||||||
|
</TargetFrameworkProfile>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<SccProjectName>SAK</SccProjectName>
|
<SccProjectName>SAK</SccProjectName>
|
||||||
<SccLocalPath>SAK</SccLocalPath>
|
<SccLocalPath>SAK</SccLocalPath>
|
||||||
|
|
@ -56,6 +57,9 @@
|
||||||
<Name>Cosmos.Debug.Common2010</Name>
|
<Name>Cosmos.Debug.Common2010</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="app.config" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- 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.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
|
|
||||||
3
source2/Users/Kudzu/FBTest/app.config
Normal file
3
source2/Users/Kudzu/FBTest/app.config
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<configuration>
|
||||||
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||||
Loading…
Reference in a new issue