[Mono-osx] mkbundle'd binaries and stack trace symbols
Jeremiah Boyle
jeremiah.boyle at gmail.com
Sat Jul 10 19:46:12 EDT 2010
This situation is improved in 2.6.
MONO_BUNDLED_OPTIONS lets you pass runtime options to the mkbundle
generated executable.
MONO_BUNDLED_OPTIONS=--debug will produce stacks with line numbers if
the mdb files are in your current working directory.
On Tue, Apr 6, 2010 at 4:51 PM, Jeremiah Boyle <jeremiah.boyle at gmail.com> wrote:
> Stack traces from mkbundle'd binaries on OSX don't seem to have line number
> information. They appear as they would if run with the mono binary without
> the --debug flag. I would like the mkbundle'd binary to run in debugging
> mode so I get line numbers. Is this possible?
>
> A simple demonstration:
>
> $ gmcs -debug Test.cs
>
> $ mono --debug Test.exe
> Unhandled Exception: System.Exception: asdf
> at Test.Program.Main (System.String[] args) [0x00000] in /tmp/Test.cs:9
>
> $ AS="as -arch i386" CC="cc -m32" mkbundle -o Test Test.exe
> OS is: DarwinSources: 1 Auto-dependencies: False
> embedding: /tmp/Test.exe
> Compiling:
> as -arch i386 -o temp.o temp.s
> cc -m32 -g -o Test -Wall temp.c `pkg-config --cflags --libs mono` temp.o
> Done
>
> $ ./Test
> Unhandled Exception: System.Exception: asdf
> at Test.Program.Main (System.String[] args) [0x00000] in <filename
> unknown>:0
>
More information about the Mono-osx
mailing list