Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
* mono-debugger-mini-wrapper: Make finding it relocatable
Browse files Browse the repository at this point in the history
svn path=/tags/debugger-0-10/; revision=46980
  • Loading branch information
Wade Berrier committed Jul 5, 2005
1 parent 7640d6a commit 3aebb59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
10 changes: 8 additions & 2 deletions classes/ProcessStart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 3aebb59

Please sign in to comment.