2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / web / jit-debug
index e33deb65579a69f1eac3e895c47b472b6d0b34a1..66b4411ff07d901618781294ddfce48e13eb31d4 100644 (file)
@@ -16,7 +16,7 @@
 * Debugging with GDB
 
        If you use GDB to debug your mono process, you can use the function
-       print_method_from_ip(void *address) to obtain the name of a method
+       mono_print_method_from_ip(void *address) to obtain the name of a method
        given an address.
 
        For example:
        You can now use:
 
 <pre>
-(gdb) p print_method_from_ip (0x0817f490)
+(gdb) p mono_print_method_from_ip (0x0817f490)
 IP 0x817f490 at offset 0x28 of method (wrapper managed-to-native) System.String:GetHashCode () (0x817f468 0x817f4a4)
 $1 = void
-(gdb) p print_method_from_ip (0x0817f42a)
+(gdb) p mono_print_method_from_ip (0x0817f42a)
 IP 0x817f42a at offset 0x52 of method System.Collections.Hashtable:GetHash (object) (0x817f3d8 0x817f43b)
 $2 = void
 </pre>
 
+       Mono support libraries use a couple of signals internally that
+       confuse gdb, you might want to add this to your .gdbinit file:
+
+<pre>
+       handle SIGPWR nostop noprint 
+       handle SIGXCPU nostop noprint 
+</pre>
+
 * Mono Debugger 
 
        The Mono debugger is written in C# and can debug both managed
@@ -52,13 +60,14 @@ $2 = void
        href="http://lists.ximian.com/archives/public/mono-list/2003-January/011415.html">post</a>. 
        
        The debugger contains both Gtk# and command line interfaces.
-       The debugging file format used in Dwarf (its already supported
+       The debugging file format used in Dwarf (it's already supported
        by our class libraries and the Mono C# compiler; To debug C
        applications, you need a recent GCC, or to pass the -gdwarf-2
        flag to gcc).
 
-       The debugger is available now, you can get it from <a
-       href="http://primates.ximian.com/~martin/debugger/mono-debugger-0.2.0.tar.gz">here</a>
+       You can download the releases from <a
+       href="http://primates.ximian.com/~martin/debugger/">Martin Baulig's
+       home page.</a>