summaryrefslogtreecommitdiff
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
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
-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);