[lldb] Document and install the mono.py file for LLDB
authorMiguel de Icaza <miguel@gnome.org>
Thu, 29 Jan 2015 20:33:37 +0000 (15:33 -0500)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 29 Jan 2015 20:33:48 +0000 (15:33 -0500)
data/Makefile.am
man/mono.1

index 73dbe78209bad2e8499b44fe57e22bce9b1c5cce..2cfd5202b65cf01da419f10a70ccdeed2e40d0ed 100644 (file)
@@ -1,6 +1,7 @@
 SUBDIRS = net_2_0 net_4_0 net_4_5
 
 monodir = $(sysconfdir)/mono
+monolldbdir = $(libdir)/mono/lldb
 
 EXTRA_DIST =   \
        config.in \
@@ -12,7 +13,8 @@ EXTRA_DIST =          \
        reactive.pc.in xbuild12.pc \
        net_1_1/machine.config \
        gdb/mono-gdb.py \
-       gdb/gdb-python.diff
+       gdb/gdb-python.diff     \
+       lldb/mono.py
 
 pkgconfigdir = $(libdir)/pkgconfig
 
@@ -31,6 +33,7 @@ DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nuni
 mono_DATA =  config \
             browscap.ini
 
+monolldb_DATA = lldb/mono.py
 gdbdir = $(bindir)
 
 mono-sgen-gdb.py: gdb/mono-gdb.py
index eaae0856df00fd1c228eb3c8237c1e39b904e2d1..dbeea6a087e0b5a97a194ce1778184f609ce300c 100644 (file)
@@ -854,6 +854,19 @@ The following is a common use to track down problems with P/Invoke:
 
 .fi
 .PP
+.SH DEBUGGING WITH LLDB
+If you are using LLDB, you can use the 
+.B mono.py
+script to print some internal data structures with it.   To use this,
+add this to your 
+.B  $HOME/.lldbinit
+file:
+.nf
+command script import $PREFIX/lib/mono/lldb/mono.py
+.fi
+.PP
+Where $PREFIX is the prefix value that you used when you configured
+Mono (typically /usr).
 .SH SERIALIZATION
 Mono's XML serialization engine by default will use a reflection-based
 approach to serialize which might be slow for continuous processing