Author: wade
Date: 2005-07-05 19:32:03 -0400 (Tue, 05 Jul 2005)
New Revision: 46981
Modified:
trunk/debugger/ChangeLog
trunk/debugger/classes/ProcessStart.cs
Log:
Merged up revision 46980
* mono-debugger-mini-wrapper: Make finding it relocatable
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2005-07-05 23:27:10 UTC (rev 46980)
+++ trunk/debugger/ChangeLog 2005-07-05 23:32:03 UTC (rev 46981)
@@ -48,6 +48,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-07-01 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/debugger/classes/ProcessStart.cs
===================================================================
--- trunk/debugger/classes/ProcessStart.cs 2005-07-05 23:27:10 UTC (rev
46980)
+++ trunk/debugger/classes/ProcessStart.cs 2005-07-05 23:32:03 UTC (rev
46981)
@@ -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