Skip to content

Commit 0293dc8

Browse files
committed
debug: openocd server now require full path to openocd executable
1 parent aecd25b commit 0293dc8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

commands/debug/debug.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ func getCommandLine(req *dbg.DebugConfigReq, pm *packagemanager.PackageManager)
150150
// Extract path to GDB Server
151151
switch debugInfo.GetServer() {
152152
case "openocd":
153-
openocd := paths.New(debugInfo.ServerPath).Join("openocd")
154-
serverCmd := fmt.Sprintf(`target extended-remote | "%s"`, openocd)
153+
serverCmd := fmt.Sprintf(`target extended-remote | "%s"`, debugInfo.ServerPath)
155154

156155
if cfg := debugInfo.ServerConfiguration["scripts_dir"]; cfg != "" {
157156
serverCmd += fmt.Sprintf(` -s "%s"`, cfg)

0 commit comments

Comments
 (0)