@@ -49,11 +49,10 @@ func TestGetCommandLine(t *testing.T) {
49
49
Instance : & rpc.Instance {Id : 1 },
50
50
Fqbn : "arduino-test:samd:arduino_zero_edbg" ,
51
51
SketchPath : sketchPath .String (),
52
- Port : "none" ,
53
52
}
54
53
55
54
goldCommand := fmt .Sprintf ("%s/arduino-test/tools/arm-none-eabi-gcc/7-2017q4/bin//arm-none-eabi-gdb%s" , dataDir , toolExtension ) +
56
- " -ex target extended-remote |" +
55
+ " --interpreter=console - ex target extended-remote |" +
57
56
fmt .Sprintf (" %s/arduino-test/tools/openocd/0.10.0-arduino7/bin/openocd%s" , dataDir , toolExtension ) +
58
57
fmt .Sprintf (" -s \" %s/arduino-test/tools/openocd/0.10.0-arduino7/share/openocd/scripts/\" " , dataDir ) +
59
58
fmt .Sprintf (" --file \" %s/arduino-test/samd/variants/arduino_zero/openocd_scripts/arduino_zero.cfg\" " , customHardware ) +
@@ -67,14 +66,14 @@ func TestGetCommandLine(t *testing.T) {
67
66
// Other samd boards such as mkr1000 can be debugged using an external tool such as Atmel ICE connected to
68
67
// the board debug port
69
68
req2 := & dbg.DebugConfigReq {
70
- Instance : & rpc.Instance {Id : 1 },
71
- Fqbn : "arduino-test:samd:mkr1000" ,
72
- SketchPath : sketchPath .String (),
73
- Port : "none " ,
69
+ Instance : & rpc.Instance {Id : 1 },
70
+ Fqbn : "arduino-test:samd:mkr1000" ,
71
+ SketchPath : sketchPath .String (),
72
+ Interpreter : "mi1 " ,
74
73
}
75
74
76
75
goldCommand2 := fmt .Sprintf ("%s/arduino-test/tools/arm-none-eabi-gcc/7-2017q4/bin//arm-none-eabi-gdb%s" , dataDir , toolExtension ) +
77
- " -ex target extended-remote |" +
76
+ " --interpreter=mi1 - ex target extended-remote |" +
78
77
fmt .Sprintf (" %s/arduino-test/tools/openocd/0.10.0-arduino7/bin/openocd%s" , dataDir , toolExtension ) +
79
78
fmt .Sprintf (" -s \" %s/arduino-test/tools/openocd/0.10.0-arduino7/share/openocd/scripts/\" " , dataDir ) +
80
79
fmt .Sprintf (" --file \" %s/arduino-test/samd/variants/mkr1000/openocd_scripts/arduino_zero.cfg\" " , customHardware ) +
0 commit comments