[aot] use g_error instead of fprintf + exit(1).
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Mon, 3 Aug 2015 14:02:18 +0000 (16:02 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Mon, 3 Aug 2015 14:06:02 +0000 (16:06 +0200)
commit2f393535bca0f34cce761a16c9ac2c62166df1a0
tree05b6ba45d6a6891a4ab179af41fbfbf2549b66f1
parent6e4b8c89aa76fc7cf354dd7c386f656bffa6b661
[aot] use g_error instead of fprintf + exit(1).

printfs don't always show up in the iOS device log, and exit(1) does
not create a crash report, making these conditions hard to debug
(all you get is "app X exited with code 1", and then you need to
attach a native debugger and break on 'exit' to figure out more).

g_error will end up producing output using NSLog (which always
shows up in the device log), and a crash report as well, making
debugging a lot easier.
mono/mini/aot-runtime.c