<Dependencies/>
<Settings Type="Dynamic Library">
<Configuration Name="Debug" CompilerType="gnu g++" DebuggerType="GNU gdb debugger" Type="Dynamic Library">
- <General OutputFile="" IntermediateDirectory="./Debug" Command="" CommandArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes"/>
+ <General OutputFile="" IntermediateDirectory="./Debug" Command="./images/$project.elf" CommandArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes"/>
<Compiler Required="yes" Options="-g">
<IncludePath Value="."/>
</Compiler>
<Linker Required="yes" Options=""/>
- <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="">
- <PostConnectCommands></PostConnectCommands>
+ <Debugger IsRemote="yes" RemoteHostName="localhost" RemoteHostPort="3333" DebuggerPath="$debuggerpath">
+ <PostConnectCommands>monitor soft_reset_halt
+tbreak main</PostConnectCommands>
<StartupCommands></StartupCommands>
- </Debugger>
+ </Debugger>
<ResourceCompiler Required="no" Options=""/>
<PreBuild/>
<PostBuild/>
"""
template = open("cltemplates/bertos.project", "r").read()
filelist = "\n".join(clFiles(findSources(project_info.info("PROJECT_PATH")), ""))
+ debugger_path = project_info.info("TOOLCHAIN")["path"].replace("gcc", "gdb")
while template.find("$filelist") != -1:
template = template.replace("$filelist", filelist)
project_name = os.path.basename(project_info.info("PROJECT_PATH"))
while template.find("$project") != -1:
template = template.replace("$project", project_name)
+ while template.find("$debuggerpath") != -1:
+ template = template.replace("$debuggerpath", debugger_path)
return template
def codeliteWorkspaceGenerator(project_info):