* 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
This commit is contained in:
parent
3c36edc0d2
commit
3e57529e3e
@ -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.
|
* configure.in: link addr2line only for ELF.
|
||||||
|
|
||||||
|
@ -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)
|
#if HAVE_BACKTRACE || defined(_WIN32)
|
||||||
fprintf(stderr, "-- C level backtrace information "
|
fprintf(stderr, "-- C level backtrace information "
|
||||||
"-------------------------------------------\n");
|
"-------------------------------------------\n");
|
||||||
|
|
||||||
{
|
{
|
||||||
#if HAVE_BACKTRACE
|
#if defined __MACH__ && defined __APPLE__
|
||||||
|
#elif HAVE_BACKTRACE
|
||||||
#define MAX_NATIVE_TRACE 1024
|
#define MAX_NATIVE_TRACE 1024
|
||||||
static void *trace[MAX_NATIVE_TRACE];
|
static void *trace[MAX_NATIVE_TRACE];
|
||||||
int n = backtrace(trace, MAX_NATIVE_TRACE);
|
int n = backtrace(trace, MAX_NATIVE_TRACE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user