diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-07-16 16:21:23 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-07-16 16:21:23 +0000 |
commit | a85b413e9bae1f361873090027c413474369bf2b (patch) | |
tree | d1eebe1471bbd69aba2e3f82d7fb759793f15b03 /sal/osl/unx/signal.c | |
parent | b79852fba0b1f459da9e16368a262c2365437ca6 (diff) |
INTEGRATION: CWS ooo11rc2 (1.15.2); FILE MERGED
2003/07/14 18:31:43 fa 1.15.2.2: Add in PORTS OS X locale discovery code including external
locale discovery dylib, also utility functions for OS X
port in system.c and other misc OS X porting changes.
This commit does NOT include the interlck.c asm code for
PPC.
http://www.openoffice.org/project/www/issues/show_bug.cgi?id=16607
Dan
fa@ooo
2003/07/07 15:07:50 hro 1.15.2.1: #i16549# Temp file names have to start with a slash because P_tmpdir is not always terminated by a slash
Diffstat (limited to 'sal/osl/unx/signal.c')
-rw-r--r-- | sal/osl/unx/signal.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sal/osl/unx/signal.c b/sal/osl/unx/signal.c index 762f07a48509..7146146a265e 100644 --- a/sal/osl/unx/signal.c +++ b/sal/osl/unx/signal.c @@ -2,9 +2,9 @@ * * $RCSfile: signal.c,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: vg $ $Date: 2003-07-11 13:40:08 $ + * last change: $Author: hr $ $Date: 2003-07-16 17:21:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -478,15 +478,21 @@ static int ReportCrash( int Signal ) static void PrintStack( int sig ) { void *buffer[MAX_FRAME_COUNT]; +#ifndef MACOSX int size = backtrace( buffer, sizeof(buffer) / sizeof(buffer[0]) ); +#endif fprintf( stderr, "\n\nFatal exception: Signal %d\n", sig ); +#ifdef MACOSX + fprintf( stderr, "Please turn on Enable Crash Reporting and\nAutomatic Display of Crashlogs in the Console application\n" ); +#else if ( size > 0 ) { fputs( "Stack:\n", stderr ); backtrace_symbols_fd( buffer, size, fileno(stderr) ); } +#endif } static oslSignalAction CallSignalHandler(oslSignalInfo *pInfo) |