[Mono-osx] mkbundle'd binaries and stack trace symbols
Jeremiah Boyle
jeremiah.boyle at gmail.com
Tue Apr 6 19:51:29 EDT 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20100406/6d254ec9/attachment.html
More information about the Mono-osx
mailing list