Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Müller <nexyon@gmail.com>2014-06-03 02:45:37 +0400
committerJörg Müller <nexyon@gmail.com>2014-06-21 17:32:37 +0400
commit076b81ec5d6117ca62610e99ae437c5ce807d11d (patch)
tree55e2a0c85a3c0b8a45a5eaa98447780fe69d8d4c /main/src/addins/MonoDevelop.Debugger.Gdb
parent2c902cb7c1b90530d4215b662d044a3114d29399 (diff)
[Debugger.Gdb] Use configured environment variables.
The gdb debugger so far ignored environment variables in the start information.
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger.Gdb')
-rw-r--r--main/src/addins/MonoDevelop.Debugger.Gdb/GdbSession.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.Gdb/GdbSession.cs b/main/src/addins/MonoDevelop.Debugger.Gdb/GdbSession.cs
index c585ab86b5..f7ad8dfa67 100644
--- a/main/src/addins/MonoDevelop.Debugger.Gdb/GdbSession.cs
+++ b/main/src/addins/MonoDevelop.Debugger.Gdb/GdbSession.cs
@@ -125,6 +125,11 @@ namespace MonoDevelop.Debugger.Gdb
// Set inferior arguments
if (!string.IsNullOrEmpty (startInfo.Arguments))
RunCommand ("-exec-arguments", startInfo.Arguments);
+
+ if (startInfo.EnvironmentVariables != null) {
+ foreach (var v in startInfo.EnvironmentVariables)
+ RunCommand ("-gdb-set", "environment", v.Key, v.Value);
+ }
currentProcessName = startInfo.Command + " " + startInfo.Arguments;