[Mono-list] mono-0.24 build and gdb

Piyush, Garyali (IE10) Piyush.Garyali@honeywell.com
Wed, 7 May 2003 21:02:26 +0530


Thanks Miguel, :)

That sure helped a lot. 

Regards,
-pg



> -----Original Message-----
> From: Miguel de Icaza [mailto:miguel@ximian.com]
> Sent: Wednesday, May 07, 2003 8:47 PM
> To: Piyush, Garyali (IE10)
> Cc: mono (E-mail)
> Subject: Re: [Mono-list] mono-0.24 build and gdb
> 
> 
> Hello!
> 
> > 1. If I don't use the Garbage Collector and do a 
> ./configure .. I get "GC :
> > Auto" which I reckon means that the build would go ahead 
> without the use of
> > GC. Then why in case of mini do I still have the following :
> > 
> >     genmdesc_LDADD = $(libs) -lgc -lm
> > 
> > This broke my build and I had to remove -lgc to proceed.
> 
> Auto is an artifact of the past.  Back then we were hoping to support
> more than one GC engine.  Auto means `Use any GC if found, do 
> not use it
> if not found' as opposed to `definitely use Boehm or definitely do not
> use anything'.
> 
> You have to manually specify none there:
> 
> 	configure --with-gc=none
> 
> > 2. I use gdb to debug into the, what is now called "oldmono" code:
> > 
> >     gdb --args oldmono helloworld.exe
> > 
> > but with the new mono(aot) whenever I open the gdb, it 
> retorts with "mono:
> > is not in executable format : File format not recognized". 
> What might be the
> > reason for this?
> 
> If you do that from the Mono build directory, `mono' and `oldmono' are
> wrappers generated by libtool.  The real binaries typically live under
> `.libs'.
> 
> So you can do:
> 
> 	gdb --args .libs/mono helloworld.exe
> 
> Or just do a make install and use as you normally would.
> 
> Miguel.
>