From cdb972b91ee72e11426735691f8c0e7e8e75b2c0 Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 27 Aug 2009 14:24:44 +0000 Subject: [PATCH] Add debug configuration for codelite projets git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2797 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/cltemplates/bertos.project | 9 +++++---- wizard/plugins/codelite.py | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/wizard/cltemplates/bertos.project b/wizard/cltemplates/bertos.project index 4bacd618..8a3a6b45 100644 --- a/wizard/cltemplates/bertos.project +++ b/wizard/cltemplates/bertos.project @@ -5,15 +5,16 @@ $filelist - + - - + + monitor soft_reset_halt +tbreak main - + diff --git a/wizard/plugins/codelite.py b/wizard/plugins/codelite.py index 543cb6d1..c5e7007d 100644 --- a/wizard/plugins/codelite.py +++ b/wizard/plugins/codelite.py @@ -96,11 +96,14 @@ def codeliteProjectGenerator(project_info): """ 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): -- 2.25.1