Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* mono-debugger-mini-wrapper: Make finding it relocatable

svn path=/tags/debugger-0-10/; revision=46980
  • Loading branch information...
commit 3aebb59431f11677f884ed20e8f9065abc6ff56d 1 parent 7640d6a
Wade Berrier authored
Showing with 9 additions and 2 deletions.
  1. +1 −0  ChangeLog
  2. +8 −2 classes/ProcessStart.cs
View
1  ChangeLog
@@ -5,6 +5,7 @@
- add dllmap to Mono.Debugger.dll.config
Remove dllmap for monodebuggerderver since it will be located by
ldconfig's cache or LD_LIBRARY_PATH
+ * mono-debugger-mini-wrapper: Make finding it relocatable
2005-06-11 Chris Toshok <toshok@ximian.com>
View
10 classes/ProcessStart.cs
@@ -69,8 +69,14 @@ public class ProcessStart
static ProcessStart ()
{
- string libdir = AssemblyInfo.libdir;
- JitWrapper = Path.Combine (libdir, "mono-debugger-mini-wrapper");
+ string base_directory = System.AppDomain.CurrentDomain.BaseDirectory;
+
+ /* Use relative path based on where Mono.Debugger.dll is at to enable relocation */
+ JitWrapper = Path.GetFullPath (base_directory +
+ Path.DirectorySeparatorChar + ".." +
+ Path.DirectorySeparatorChar + ".." +
+ Path.DirectorySeparatorChar + "mono-debugger-mini-wrapper");
+
}
public ProcessStart ()
Please sign in to comment.
Something went wrong with that request. Please try again.