Also do not clear the subprocess environment, in case running GDB needs certain environment variables. (cherry picked from commit f553dc06)