summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-27 06:45:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-27 06:45:30 +0000
commit3e57529e3edf120d0c6444ed0b21d4ea2b44133a (patch)
tree6fb51ed3a517d7e980e1deb274c7f1f9c04d5178 /vm_dump.c
parent3c36edc0d2b5da5444b8ebbcc605367de9745fe5 (diff)
* vm_dump.c (rb_vm_bugreport): see CrashReport log on Mac OS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 8adb3f4..278c4aa 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -776,12 +776,19 @@ rb_vm_bugreport(void)
}
}
+#if defined __MACH__ && defined __APPLE__
+ fprintf(stderr, "-- See Crash Report log file under "
+ "~/Library/Logs/CrashReport or -----------\n");
+ fprintf(stderr, "-- /Library/Logs/CrashReport, for "
+ "the more detail of -----------------------\n");
+#endif
#if HAVE_BACKTRACE || defined(_WIN32)
fprintf(stderr, "-- C level backtrace information "
"-------------------------------------------\n");
{
-#if HAVE_BACKTRACE
+#if defined __MACH__ && defined __APPLE__
+#elif HAVE_BACKTRACE
#define MAX_NATIVE_TRACE 1024
static void *trace[MAX_NATIVE_TRACE];
int n = backtrace(trace, MAX_NATIVE_TRACE);