This commit is contained in:
kudzu_cp 2010-07-08 00:55:48 +00:00
parent cbaeab70a5
commit 5467c1b181
2 changed files with 6 additions and 8 deletions

View file

@ -60,25 +60,23 @@ namespace Cosmos.Debug.VSDebugEngine
var xDebugConnectorStr = @"-serial pipe:CosmosDebug"; var xDebugConnectorStr = @"-serial pipe:CosmosDebug";
#endif #endif
var xQT = "\"";
// Start QEMU // Start QEMU
// QEMU Command Line docs: http://wiki.qemu.org/download/qemu-doc.html#sec_005finvocation // QEMU Command Line docs: http://wiki.qemu.org/download/qemu-doc.html#sec_005finvocation
// Here we actually call our dummy/proxy program (Cosmos.Debug.HostProcess.exe) which in turn calls QEMU. // Here we actually call our dummy/proxy program (Cosmos.Debug.HostProcess.exe) which in turn calls QEMU.
mProcessStartInfo.Arguments = mProcessStartInfo.Arguments =
"false" // Tells proxy to use ShellExecute or not (In this case, not, ie false) "false" // Tells proxy to use ShellExecute or not (In this case, not, ie false)
// Rest of arguments are used to launch another process and its arguments. // Rest of arguments are used to launch another process and its arguments.
+ " " + Path.Combine(PathUtilities.GetQEmuDir(), "qemu.exe") // Program for our proxy to run + " " + xQT + Path.Combine(PathUtilities.GetQEmuDir(), "qemu.exe") + xQT // Program for our proxy to run
+ " -L " + PathUtilities.GetQEmuDir().Replace("\\", "/") // Directory for the BIOS, VGA BIOS and keymaps + " -L " + xQT + PathUtilities.GetQEmuDir().Replace("\\", "/") + xQT // Directory for the BIOS, VGA BIOS and keymaps
+ " -cdrom " + mISO.Replace("\\", "/") // CDRom image + " -cdrom " + xQT + mISO.Replace("\\", "/") + xQT // CDRom image
+ " -boot d" // Boot from the CDRom + " -boot d" // Boot from the CDRom
+ " " + xDebugConnectorStr; + " " + xDebugConnectorStr;
if (xGDBDebugStub) if (xGDBDebugStub) {
{
mProcessStartInfo.Arguments += " -s -S"; mProcessStartInfo.Arguments += " -s -S";
} }
#endif #endif
#if VM_VMWare #if VM_VMWare
mProcessStartInfo.Arguments = @"true C:\source\Cosmos\Build\VMWare\Workstation\Cosmos.vmx"; mProcessStartInfo.Arguments = @"true C:\source\Cosmos\Build\VMWare\Workstation\Cosmos.vmx";

View file

@ -18,7 +18,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath> <OutputPath>D:\Cosmos\Breakpoints</OutputPath>
<BuildTarget>QEMU</BuildTarget> <BuildTarget>QEMU</BuildTarget>
<Framework>MicrosoftNET</Framework> <Framework>MicrosoftNET</Framework>
<UseInternalAssembler>False</UseInternalAssembler> <UseInternalAssembler>False</UseInternalAssembler>