command QEnvironmentHexEncoded

Format: ‘QEnvironmentHexEncoded:hex-value’

Meaning: On UNIX-like targets, it is possible to set environment variables that will be passed to the inferior during the startup process. This packet is used to inform gdbserver of an environment variable that has been defined by the user on GDB.

The packet is composed by hex-value, an hex encoded representation of the name=value format representing an environment variable. The name of the environment variable is represented by name, and the value to be assigned to the environment variable is represented by value. If the variable has no value (i.e., the value is null), then value will not be present.

This packet is only available in extended mode.

This packet is not probed by default; the remote stub must request it, by supplying an appropriate ‘qSupported’ response. This should only be done on targets that actually support passing environment variables to the starting inferior.

Reply:

OK