mail-archives/mono-list/2003-October/016167.html

186 строки
8.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] Debugging Tips
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:jonpryor%40vt.edu">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="016163.html">
<LINK REL="Next" HREF="016175.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] Debugging Tips
</H1>
<B>Jonathan Pryor
</B>
<A HREF="mailto:jonpryor%40vt.edu"
TITLE="[Mono-list] Debugging Tips">jonpryor@vt.edu
</A><BR>
<I>Mon, 06 Oct 2003 22:12:05 -0400</I>
<P><UL>
<LI> Previous message: <A HREF="016163.html">[Mono-list] Debugging Tips
</A></li>
<LI> Next message: <A HREF="016175.html">[Mono-list] Gtk#+Mono = Windows Crazy? or Wrong Version
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16167">[ date ]</a>
<a href="thread.html#16167">[ thread ]</a>
<a href="subject.html#16167">[ subject ]</a>
<a href="author.html#16167">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Replies inline...
On Mon, 2003-10-06 at 19:39, Steve Mentzer wrote:
&gt;<i> This may be a really stupid question, but how do you enable the 'debug'
</I>&gt;<i> build of mono? I want to track down the dreaded 'bus error' that appears to
</I>&gt;<i> be plaguing OS/X installations since 0.23.
</I>
The MCS-generated binaries (*.dll, *.exe) should contain debug
information already.
To get debugging information into Mono's runtime binaries (libmono.so,
etc.), after you run configure, run:
make CFLAGS=-g
This should insert debugging information into all GCC-generated
binaries.
You may need to do ``make clean'' first, otherwise you won't rebuild and
get the debugging symbols.
&gt;<i> I am a real newbie with unix make files and gcc. Is there an equivalent in
</I>&gt;<i> the unix world to a .map files,
</I>
Can't think of one, though ``objdump'' may provide what you're after.
Alas, ``objdump'' is sorely lacking on OS X, so try ``otool'' instead.
&gt;<i> symbol info
</I>
``otool'' as well.
&gt;<i> and enabling the crash reporting
</I>&gt;<i> to display the seg/offset/etc so I can narrow down the issue?
</I>
Uh, run in GDB?
- Jon
&gt;<i> Thanks In Advance!
</I>&gt;<i>
</I>&gt;<i> ----- Original Message -----
</I>&gt;<i> From: &quot;Pablo Fischer&quot; &lt;<A HREF="mailto:pablo@pablo.com.mx">pablo@pablo.com.mx</A>&gt;
</I>&gt;<i> To: &quot;Mono List&quot; &lt;<A HREF="mailto:mono-list@lists.ximian.com">mono-list@lists.ximian.com</A>&gt;
</I>&gt;<i> Sent: Monday, October 06, 2003 4:15 PM
</I>&gt;<i> Subject: Re: [Mono-list] Gtk#+Mono = Windows Crazy? or Wrong Version
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> &gt; Why?.. I didnt know that I needed just Mono to run Gtk, cause in
</I>&gt;<i> &gt; go-mono.com, one of the requirements for Gtk# are Gtk Runtime and .NET,
</I>&gt;<i> &gt; but if It's not necesarry.. I'll remove it :).
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; Ok, I'm a Debian user and a fan of apt-get.. so the last version for
</I>&gt;<i> &gt; Debian (Alp's Repository) is the .26. I know that I can compile it and I
</I>&gt;<i> &gt; really want to do that.. but damn.. I love apt-get :).
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; So, If in the Windows (2k) I uninstall the .NET framework, change the
</I>&gt;<i> &gt; Mono version from .28 to .25 (cause .26 doesnt works for me) and the
</I>&gt;<i> &gt; Gtk# from .10 to .8 it will work?,
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; Also, another question: If I have my .exe app, the windows users can
</I>&gt;<i> &gt; download and use it with .NET (installing the gtk# in the .NET
</I>&gt;<i> &gt; directory) but WITHOUT mono, does my app will work or needs of Mono?
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; Thanks!
</I>&gt;<i> &gt; Pablo
</I>&gt;<i> &gt; El lun, 06-10-2003 a las 17:29, Pavlica, Nick escribió:
</I>&gt;<i> &gt; &gt; Pablo,
</I>&gt;<i> &gt; &gt; Why are you installing the .NET frame work in addition to Mono if you
</I>&gt;<i> &gt; &gt; are developing on Linux/Mono+GTK and deploying on Windows? I would
</I>&gt;<i> &gt; &gt; recommend using Mono .28+GTK or newer on both systems. Using the same
</I>&gt;<i> &gt; &gt; runtime on both operating systems will allow you to have greater
</I>&gt;<i> &gt; &gt; confidence in the functionality of your software.
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; My 2 Cents :)
</I>&gt;<i> &gt; &gt; Nick Pavlica
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; On Mon, 2003-10-06 at 15:03, Pablo Fischer wrote:
</I>&gt;<i> &gt; &gt; &gt; Hello!!
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; I need to install Mono and Gtk# in 25 computers running Windows (Im
</I>&gt;<i> &gt; &gt; &gt; going to develop an app for the university in Linux and run it in
</I>&gt;<i> &gt; &gt; &gt; Windows).
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; Im installing this packages in this order:
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; * .NET FrameWork
</I>&gt;<i> &gt; &gt; &gt; * Mono-.28 (I tried with .25 and I have the same error)
</I>&gt;<i> &gt; &gt; &gt; * Gtk#-10, but the stable version (like 3.xx MB), it contains the
</I>&gt;<i> &gt; &gt; &gt; GtkRuntime
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; Now Im testing with a simple app created with glade-sharp, gtk-sharp,
</I>&gt;<i> &gt; &gt; &gt; its a simple button that says: Bye World. But Everytime I try to run
</I>&gt;<i> it
</I>&gt;<i> &gt; &gt; &gt; it crashes, giving me this error:
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; FAiled to load function gtksharp_glade_xml_get_filename from
</I>&gt;<i> &gt; &gt; &gt; gtksharpglue (this error appers twice)
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; Unhandled Exception: System.TypeInitializationException: An exception
</I>&gt;<i> &gt; &gt; &gt; was thrown by the type initializer for
</I>&gt;<i> &gt; &gt; &gt; Gtk.Application---&gt;System.NullReferenceException: A null value was
</I>&gt;<i> found
</I>&gt;<i> &gt; &gt; &gt; where an object instance was required.
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; I compiled this in my linux, running
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; Mono .26
</I>&gt;<i> &gt; &gt; &gt; gnome, gtk, glib, gtk-sharp-glue with .8-1
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; Thanks!
</I>&gt;<i> &gt; &gt; &gt; Pablo
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; _______________________________________________
</I>&gt;<i> &gt; &gt; &gt; Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i> &gt; &gt; &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>&gt;<i> &gt; &gt; _______________________________________________
</I>&gt;<i> &gt; &gt; Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i> &gt; &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; _______________________________________________
</I>&gt;<i> &gt; Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i> &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>&gt;<i> &gt;
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="016163.html">[Mono-list] Debugging Tips
</A></li>
<LI> Next message: <A HREF="016175.html">[Mono-list] Gtk#+Mono = Windows Crazy? or Wrong Version
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16167">[ date ]</a>
<a href="thread.html#16167">[ thread ]</a>
<a href="subject.html#16167">[ subject ]</a>
<a href="author.html#16167">[ author ]</a>
</LI>
</UL>
</body></html>