Author: wade
Date: 2005-07-05 14:14:28 -0400 (Tue, 05 Jul 2005)
New Revision: 46960
Modified:
trunk/debugger/ChangeLog
trunk/debugger/arch/Bfd.cs
trunk/debugger/backends/Inferior.cs
trunk/debugger/configure.in
trunk/debugger/wrapper/Makefile.am
trunk/debugger/wrapper/Mono.Debugger.dll.config.in
Log:
* DllImport: (merged up r46954)
Copy what gtk-sharp does for importing glib-2.0:
- add dllmap to Mono.Debugger.dll.config
Remove dllmap for monodebuggerderver since it will be located by
ldconfig's cache or LD_LIBRARY_PATH
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2005-07-05 17:54:53 UTC (rev 46959)
+++ trunk/debugger/ChangeLog 2005-07-05 18:14:28 UTC (rev 46960)
@@ -1,3 +1,11 @@
+2005-07-05 Wade Berrier <[EMAIL PROTECTED]>
+
+ * DllImport: (merged up r46954)
+ Copy what gtk-sharp does for importing glib-2.0:
+ - add dllmap to Mono.Debugger.dll.config
+ Remove dllmap for monodebuggerderver since it will be located by
+ ldconfig's cache or LD_LIBRARY_PATH
+
2005-07-01 Chris Toshok <[EMAIL PROTECTED]>
* backends/classes/Utils.cs: rewrite this to remove the dep on
Modified: trunk/debugger/arch/Bfd.cs
===================================================================
--- trunk/debugger/arch/Bfd.cs 2005-07-05 17:54:53 UTC (rev 46959)
+++ trunk/debugger/arch/Bfd.cs 2005-07-05 18:14:28 UTC (rev 46960)
@@ -159,7 +159,7 @@
[DllImport("monodebuggerserver")]
extern static long bfd_glue_elfi386_locate_base (IntPtr bfd,
IntPtr data, int size);
- [DllImport("glib-2.0")]
+ [DllImport("libglib-2.0-0.dll")]
extern static void g_free (IntPtr data);
[DllImport("monodebuggerserver")]
Modified: trunk/debugger/backends/Inferior.cs
===================================================================
--- trunk/debugger/backends/Inferior.cs 2005-07-05 17:54:53 UTC (rev 46959)
+++ trunk/debugger/backends/Inferior.cs 2005-07-05 18:14:28 UTC (rev 46960)
@@ -218,7 +218,7 @@
public abstract Inferior CreateThread ();
- [DllImport("glib-2.0")]
+ [DllImport("libglib-2.0-0.dll")]
protected extern static void g_free (IntPtr data);
protected void check_error (TargetError error)
Modified: trunk/debugger/configure.in
===================================================================
--- trunk/debugger/configure.in 2005-07-05 17:54:53 UTC (rev 46959)
+++ trunk/debugger/configure.in 2005-07-05 18:14:28 UTC (rev 46960)
@@ -196,6 +196,17 @@
dnl BFD checks
dnl
+if test `uname -s` = "Darwin"; then
+ LIB_PREFIX=
+ LIB_SUFFIX=.dylib
+else
+ LIB_PREFIX=.so
+ LIB_SUFFIX=
+fi
+
+AC_SUBST(LIB_PREFIX)
+AC_SUBST(LIB_SUFFIX)
+
AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
AC_HEADER_TIME
@@ -210,6 +221,7 @@
classes/Makefile
glue/Makefile
wrapper/Makefile
+wrapper/Mono.Debugger.dll.config
backends/Makefile
backends/classes/Makefile
backends/server/Makefile
Modified: trunk/debugger/wrapper/Makefile.am
===================================================================
--- trunk/debugger/wrapper/Makefile.am 2005-07-05 17:54:53 UTC (rev 46959)
+++ trunk/debugger/wrapper/Makefile.am 2005-07-05 18:14:28 UTC (rev 46960)
@@ -79,12 +79,6 @@
noinst_DATA = Mono.Debugger.dll.config
-Mono.Debugger.dll.config: Mono.Debugger.dll.config.in Makefile
- sed -e '[EMAIL PROTECTED]@^$(libdir)^g' \
- -e '[EMAIL PROTECTED]@^$(LT_VERSION_SUFFIX)^g' \
- < $(srcdir)/Mono.Debugger.dll.config.in > config.tmp \
- && mv config.tmp Mono.Debugger.dll.config
-
ASSEMBLY_NAME = Mono.Debugger
ASSEMBLY = $(ASSEMBLY_NAME).dll
Modified: trunk/debugger/wrapper/Mono.Debugger.dll.config.in
===================================================================
--- trunk/debugger/wrapper/Mono.Debugger.dll.config.in 2005-07-05 17:54:53 UTC
(rev 46959)
+++ trunk/debugger/wrapper/Mono.Debugger.dll.config.in 2005-07-05 18:14:28 UTC
(rev 46960)
@@ -1,3 +1,3 @@
<configuration>
- <dllmap dll="monodebuggerserver" target="@libdir@/[EMAIL PROTECTED]@"/>
+ <dllmap dll="libglib-2.0-0.dll" target="[EMAIL PROTECTED]@[EMAIL
PROTECTED]@"/>
</configuration>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches