зеркало из https://github.com/mono/mail-archives.git
186 строки
8.2 KiB
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:
|
|
><i> This may be a really stupid question, but how do you enable the 'debug'
|
|
</I>><i> build of mono? I want to track down the dreaded 'bus error' that appears to
|
|
</I>><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.
|
|
|
|
><i> I am a real newbie with unix make files and gcc. Is there an equivalent in
|
|
</I>><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.
|
|
|
|
><i> symbol info
|
|
</I>
|
|
``otool'' as well.
|
|
|
|
><i> and enabling the crash reporting
|
|
</I>><i> to display the seg/offset/etc so I can narrow down the issue?
|
|
</I>
|
|
Uh, run in GDB?
|
|
|
|
- Jon
|
|
|
|
><i> Thanks In Advance!
|
|
</I>><i>
|
|
</I>><i> ----- Original Message -----
|
|
</I>><i> From: "Pablo Fischer" <<A HREF="mailto:pablo@pablo.com.mx">pablo@pablo.com.mx</A>>
|
|
</I>><i> To: "Mono List" <<A HREF="mailto:mono-list@lists.ximian.com">mono-list@lists.ximian.com</A>>
|
|
</I>><i> Sent: Monday, October 06, 2003 4:15 PM
|
|
</I>><i> Subject: Re: [Mono-list] Gtk#+Mono = Windows Crazy? or Wrong Version
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> > Why?.. I didnt know that I needed just Mono to run Gtk, cause in
|
|
</I>><i> > go-mono.com, one of the requirements for Gtk# are Gtk Runtime and .NET,
|
|
</I>><i> > but if It's not necesarry.. I'll remove it :).
|
|
</I>><i> >
|
|
</I>><i> > Ok, I'm a Debian user and a fan of apt-get.. so the last version for
|
|
</I>><i> > Debian (Alp's Repository) is the .26. I know that I can compile it and I
|
|
</I>><i> > really want to do that.. but damn.. I love apt-get :).
|
|
</I>><i> >
|
|
</I>><i> > So, If in the Windows (2k) I uninstall the .NET framework, change the
|
|
</I>><i> > Mono version from .28 to .25 (cause .26 doesnt works for me) and the
|
|
</I>><i> > Gtk# from .10 to .8 it will work?,
|
|
</I>><i> >
|
|
</I>><i> > Also, another question: If I have my .exe app, the windows users can
|
|
</I>><i> > download and use it with .NET (installing the gtk# in the .NET
|
|
</I>><i> > directory) but WITHOUT mono, does my app will work or needs of Mono?
|
|
</I>><i> >
|
|
</I>><i> > Thanks!
|
|
</I>><i> > Pablo
|
|
</I>><i> > El lun, 06-10-2003 a las 17:29, Pavlica, Nick escribió:
|
|
</I>><i> > > Pablo,
|
|
</I>><i> > > Why are you installing the .NET frame work in addition to Mono if you
|
|
</I>><i> > > are developing on Linux/Mono+GTK and deploying on Windows? I would
|
|
</I>><i> > > recommend using Mono .28+GTK or newer on both systems. Using the same
|
|
</I>><i> > > runtime on both operating systems will allow you to have greater
|
|
</I>><i> > > confidence in the functionality of your software.
|
|
</I>><i> > >
|
|
</I>><i> > > My 2 Cents :)
|
|
</I>><i> > > Nick Pavlica
|
|
</I>><i> > >
|
|
</I>><i> > > On Mon, 2003-10-06 at 15:03, Pablo Fischer wrote:
|
|
</I>><i> > > > Hello!!
|
|
</I>><i> > > >
|
|
</I>><i> > > > I need to install Mono and Gtk# in 25 computers running Windows (Im
|
|
</I>><i> > > > going to develop an app for the university in Linux and run it in
|
|
</I>><i> > > > Windows).
|
|
</I>><i> > > >
|
|
</I>><i> > > > Im installing this packages in this order:
|
|
</I>><i> > > >
|
|
</I>><i> > > > * .NET FrameWork
|
|
</I>><i> > > > * Mono-.28 (I tried with .25 and I have the same error)
|
|
</I>><i> > > > * Gtk#-10, but the stable version (like 3.xx MB), it contains the
|
|
</I>><i> > > > GtkRuntime
|
|
</I>><i> > > >
|
|
</I>><i> > > > Now Im testing with a simple app created with glade-sharp, gtk-sharp,
|
|
</I>><i> > > > its a simple button that says: Bye World. But Everytime I try to run
|
|
</I>><i> it
|
|
</I>><i> > > > it crashes, giving me this error:
|
|
</I>><i> > > >
|
|
</I>><i> > > > FAiled to load function gtksharp_glade_xml_get_filename from
|
|
</I>><i> > > > gtksharpglue (this error appers twice)
|
|
</I>><i> > > >
|
|
</I>><i> > > > Unhandled Exception: System.TypeInitializationException: An exception
|
|
</I>><i> > > > was thrown by the type initializer for
|
|
</I>><i> > > > Gtk.Application--->System.NullReferenceException: A null value was
|
|
</I>><i> found
|
|
</I>><i> > > > where an object instance was required.
|
|
</I>><i> > > >
|
|
</I>><i> > > > I compiled this in my linux, running
|
|
</I>><i> > > >
|
|
</I>><i> > > > Mono .26
|
|
</I>><i> > > > gnome, gtk, glib, gtk-sharp-glue with .8-1
|
|
</I>><i> > > >
|
|
</I>><i> > > > Thanks!
|
|
</I>><i> > > > Pablo
|
|
</I>><i> > > >
|
|
</I>><i> > > >
|
|
</I>><i> > > > _______________________________________________
|
|
</I>><i> > > > Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
|
|
</I>><i> > > > <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
|
|
</I>><i> > > _______________________________________________
|
|
</I>><i> > > Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
|
|
</I>><i> > > <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
|
|
</I>><i> > >
|
|
</I>><i> >
|
|
</I>><i> > _______________________________________________
|
|
</I>><i> > Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
|
|
</I>><i> > <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
|
|
</I>><i> >
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
|
|
</I>><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>
|