@@ -26,7 +26,7 @@ import (
2626)
2727
2828// Debug FIXMEDOC
29- func Debug (ctx context.Context , req * dbg.DebugReq , inStream dbg.Debug_StreamingOpenServer , out io.Writer ) (* dbg.StreamingOpenResp , error ) {
29+ func Debug (ctx context.Context , req * dbg.DebugConfigReq , inStream dbg.Debug_DebugServer , out io.Writer ) (* dbg.DebugResp , error ) {
3030 cmdArgs := []string {"gdb" }
3131 // Run Tool
3232 cmd , err := executils .Command (cmdArgs )
@@ -37,7 +37,7 @@ func Debug(ctx context.Context, req *dbg.DebugReq, inStream dbg.Debug_StreamingO
3737 in , err := cmd .StdinPipe ()
3838 if err != nil {
3939 fmt .Printf ("%v\n " , err )
40- return & dbg.StreamingOpenResp {}, nil // TODO: send error in response
40+ return & dbg.DebugResp {}, nil // TODO: send error in response
4141 }
4242 defer in .Close ()
4343
@@ -46,7 +46,7 @@ func Debug(ctx context.Context, req *dbg.DebugReq, inStream dbg.Debug_StreamingO
4646 err = cmd .Start ()
4747 if err != nil {
4848 fmt .Printf ("%v\n " , err )
49- return & dbg.StreamingOpenResp {}, nil // TODO: send error in response
49+ return & dbg.DebugResp {}, nil // TODO: send error in response
5050 }
5151
5252 // now we can read the other commands and re-route to the Debug Client...
@@ -63,5 +63,5 @@ func Debug(ctx context.Context, req *dbg.DebugReq, inStream dbg.Debug_StreamingO
6363 }()
6464
6565 err = cmd .Wait () // TODO: handle err
66- return & dbg.StreamingOpenResp {}, nil
66+ return & dbg.DebugResp {}, nil
6767}
0 commit comments