Author: wade
Date: 2005-07-05 19:27:10 -0400 (Tue, 05 Jul 2005)
New Revision: 46980
Modified:
tags/debugger-0-10/ChangeLog
tags/debugger-0-10/classes/ProcessStart.cs
Log:
* mono-debugger-mini-wrapper: Make finding it relocatable
Modified: tags/debugger-0-10/ChangeLog
===================================================================
--- tags/debugger-0-10/ChangeLog 2005-07-05 22:55:29 UTC (rev 46979)
+++ tags/debugger-0-10/ChangeLog 2005-07-05 23:27:10 UTC (rev 46980)
@@ -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 <[EMAIL PROTECTED]>
Modified: tags/debugger-0-10/classes/ProcessStart.cs
===================================================================
--- tags/debugger-0-10/classes/ProcessStart.cs 2005-07-05 22:55:29 UTC (rev
46979)
+++ tags/debugger-0-10/classes/ProcessStart.cs 2005-07-05 23:27:10 UTC (rev
46980)
@@ -69,8 +69,14 @@
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 ()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches