Rework last changes about LD_LIBRARY_PATH issue
[src/xds/xds-agent.git] / lib / xaapiv1 / exec.go
index 4b089e7..c6870d9 100644 (file)
@@ -20,17 +20,18 @@ package xaapiv1
 type (
        // ExecArgs JSON parameters of /exec command
        ExecArgs struct {
-               ID              string   `json:"id" binding:"required"`
-               SdkID           string   `json:"sdkID"` // sdk ID to use for setting env
-               CmdID           string   `json:"cmdID"` // command unique ID
-               Cmd             string   `json:"cmd" binding:"required"`
-               Args            []string `json:"args"`
-               Env             []string `json:"env"`
-               RPath           string   `json:"rpath"`           // relative path into project
-               TTY             bool     `json:"tty"`             // Use a tty, specific to gdb --tty option
-               TTYGdbserverFix bool     `json:"ttyGdbserverFix"` // Set to true to activate gdbserver workaround about inferior output
-               ExitImmediate   bool     `json:"exitImmediate"`   // when true, exit event sent immediately when command exited (IOW, don't wait file synchronization)
-               CmdTimeout      int      `json:"timeout"`         // command completion timeout in Second
+               ID               string   `json:"id" binding:"required"`
+               SdkID            string   `json:"sdkID"` // sdk ID to use for setting env
+               CmdID            string   `json:"cmdID"` // command unique ID
+               Cmd              string   `json:"cmd" binding:"required"`
+               Args             []string `json:"args"`
+               Env              []string `json:"env"`
+               RPath            string   `json:"rpath"`            // relative path into project
+               TTY              bool     `json:"tty"`              // Use a tty, specific to gdb --tty option
+               TTYGdbserverFix  bool     `json:"ttyGdbserverFix"`  // Set to true to activate gdbserver workaround about inferior output
+               LdLibPathNoReset bool     `json:"ldLibPathNoReset"` // Set to true to not reset LD_LIBRARY_PATH when sourcing environment file
+               ExitImmediate    bool     `json:"exitImmediate"`    // when true, exit event sent immediately when command exited (IOW, don't wait file synchronization)
+               CmdTimeout       int      `json:"timeout"`          // command completion timeout in Second
        }
 
        // ExecResult JSON result of /exec command