Skip to content

Commit 0dcf71b

Browse files
Merge pull request #4828 from alzix/enhancement/exporter/cdt
Enhancement - exporter/cdt
2 parents 92ac0ab + 4b5535f commit 0dcf71b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tools/export/cdt/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import re
22

3-
from os.path import join, exists, realpath, relpath, basename
3+
from os.path import join, exists
44
from os import makedirs
55

66
from tools.export.makefile import Makefile, GccArm, Armc5, IAR
@@ -30,7 +30,9 @@ def generate(self):
3030

3131

3232
self.gen_file('cdt/pyocd_settings.tmpl', ctx,
33-
join('eclipse-extras',self.target+'_pyocd_settings.launch'))
33+
join('eclipse-extras',
34+
'{target}_pyocd_{project}_settings.launch'.format(target=self.target,
35+
project=self.project_name)))
3436
self.gen_file('cdt/necessary_software.tmpl', ctx,
3537
join('eclipse-extras','necessary_software.p2f'))
3638

tools/export/cdt/pyocd_settings.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/>
5050
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/>
5151
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useRemoteTarget" value="true"/>
52-
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="arm-none-eabi-gdb.exe"/>
52+
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="arm-none-eabi-gdb"/>
5353
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.UPDATE_THREADLIST_ON_SUSPEND" value="false"/>
5454
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
5555
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>

0 commit comments

Comments
 (0)