Skip to content

Commit

Permalink
Bochs Visual Studios Debug
Browse files Browse the repository at this point in the history
I have the visual studio debug settings working but it seems to not be
working bochs is a pipe-client connecting i am not sure if it is just
slow over com or not working.
  • Loading branch information
gloveless committed May 17, 2015
1 parent 08c310c commit 1621c36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Demos/Guess/Guess.Cosmos
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@
<Bochs_TraceAssemblies>All</Bochs_TraceAssemblies>
<Bochs_EnableGDB>False</Bochs_EnableGDB>
<Bochs_StartCosmosGDB>False</Bochs_StartCosmosGDB>
<EnableBochsDebug>False</EnableBochsDebug>
<Bochs_EnableBochsDebug>False</Bochs_EnableBochsDebug>
<EnableBochsDebug>True</EnableBochsDebug>
<Bochs_EnableBochsDebug>True</Bochs_EnableBochsDebug>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<Profile>Bochs</Profile>
Expand Down Expand Up @@ -295,8 +295,8 @@
<Bochs_TraceAssemblies>All</Bochs_TraceAssemblies>
<Bochs_EnableGDB>False</Bochs_EnableGDB>
<Bochs_StartCosmosGDB>False</Bochs_StartCosmosGDB>
<EnableBochsDebug>False</EnableBochsDebug>
<Bochs_EnableBochsDebug>False</Bochs_EnableBochsDebug>
<EnableBochsDebug>True</EnableBochsDebug>
<Bochs_EnableBochsDebug>True</Bochs_EnableBochsDebug>
</PropertyGroup>
<ItemGroup>
<Content Include="Cosmos.bxrc">
Expand Down
9 changes: 5 additions & 4 deletions source/Cosmos.Debug.VSDebugEngine/Host/Bochs.Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void InitializeKeyValues() {
"speaker: enabled=1, mode=sound\n" +
"parport1: enabled=1, file=none\n" +
"parport2: enabled=0\n" +
"com1: enabled=1, mode=null\n" +
"com1: enabled=1, mode=pip-client, dev=\"%PIPESERVERNAME%\"\n" +
"com2: enabled=0\n" +
"com3: enabled=0\n" +
"com4: enabled=0";
Expand All @@ -76,9 +76,10 @@ private void InitializeKeyValues() {
defaultConfigs.Add(comboItem, "");
}
}
string iso_paramater = defaultConfigs.Get("ata0-master");
iso_paramater = iso_paramater.Replace("%CDROMBOOTPATH%", mParams["ISOFile"]);
defaultConfigs.Set("ata0-master", iso_paramater);
string xPort = mParams["VisualStudioDebugPort"];
string[] xParts = xPort.Split(new char[] {' '});
defaultConfigs.Set("com1", defaultConfigs.Get("com1").Replace("%PIPESERVERNAME%", xParts[1].ToLower()));
defaultConfigs.Set("ata0-master", defaultConfigs.Get("ata0-master").Replace("%CDROMBOOTPATH%", mParams["ISOFile"]));
}

private void GenerateConfiguration(string filePath)
Expand Down

0 comments on commit 1621c36

Please sign in to comment.