[Mono-list] Adding Solaris/amd64 support
Andreas Färber
andreas.faerber at web.de
Tue Mar 6 17:24:45 EST 2007
Hello,
> Replace the g_assert in the line with the error with a call to
> "G_BREKAPOINT".
>
> Then run with gdb:
>
> gdb mono
> (gdb) run program.exe
> wait for breakpoint
> (gdb) x/20i address
>
> Address is whatever address the method is trying to decode, you will
> have to look that one up on the source.
I managed to set the breakpoint by writing G_BREAKPOINT(); instead of
the assertion. When I run mono normally, I now see a message that it
has reached a breakpoint.
However, Solaris does not seem to ship with a gdb. I installed gdb
6.2.1 from Solaris' "Companion" DVD. But apparently it does not
support 64-bit debugging! According to the gdb mailing list that was
contributed for 6.4, and neither sunfreeware.com nor blastwave.org
provide a recent package (as with Mono). So unless I can use another
debugging tool (not sure what you need from this x/20i command) I'll
have to figure out how to compile my own gdb first.
Any ideas about the GC warning though? Can it be safely ignored for
now in 32-bit? What's the difference between Mono's libgc and e.g.
Solaris' libgc? I remember you saying about Leopard's GC it probably
wouldn't be usable for Mono.
Andreas
More information about the Mono-list
mailing list