summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--vm_dump.c9
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6b8d0b4..58f3469 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Sat Nov 27 15:43:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Nov 27 15:45:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_dump.c (rb_vm_bugreport): see CrashReport log on Mac OS X.
* configure.in: link addr2line only for ELF.
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);