-rw-r--r-- | libopie2/opiecore/odebug.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie2/opiecore/odebug.cpp b/libopie2/opiecore/odebug.cpp index d8dfe26..45709dc 100644 --- a/libopie2/opiecore/odebug.cpp +++ b/libopie2/opiecore/odebug.cpp | |||
@@ -5,64 +5,68 @@ | |||
5 | (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org) | 5 | (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org) |
6 | =. | 6 | =. |
7 | .=l. | 7 | .=l. |
8 | .>+-= | 8 | .>+-= |
9 | _;:, .> :=|. This program is free software; you can | 9 | _;:, .> :=|. This program is free software; you can |
10 | .> <`_, > . <= redistribute it and/or modify it under | 10 | .> <`_, > . <= redistribute it and/or modify it under |
11 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 11 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
12 | .="- .-=="i, .._ License as published by the Free Software | 12 | .="- .-=="i, .._ License as published by the Free Software |
13 | - . .-<_> .<> Foundation; either version 2 of the License, | 13 | - . .-<_> .<> Foundation; either version 2 of the License, |
14 | ._= =} : or (at your option) any later version. | 14 | ._= =} : or (at your option) any later version. |
15 | .%`+i> _;_. | 15 | .%`+i> _;_. |
16 | .i_,=:_. -<s. This program is distributed in the hope that | 16 | .i_,=:_. -<s. This program is distributed in the hope that |
17 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 17 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
18 | : .. .:, . . . without even the implied warranty of | 18 | : .. .:, . . . without even the implied warranty of |
19 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 19 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
20 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 20 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
21 | ..}^=.= = ; Library General Public License for more | 21 | ..}^=.= = ; Library General Public License for more |
22 | ++= -. .` .: details. | 22 | ++= -. .` .: details. |
23 | : = ...= . :.=- | 23 | : = ...= . :.=- |
24 | -. .:....=;==+<; You should have received a copy of the GNU | 24 | -. .:....=;==+<; You should have received a copy of the GNU |
25 | -_. . . )=. = Library General Public License along with | 25 | -_. . . )=. = Library General Public License along with |
26 | -- :-=` this library; see the file COPYING.LIB. | 26 | -- :-=` this library; see the file COPYING.LIB. |
27 | If not, write to the Free Software Foundation, | 27 | If not, write to the Free Software Foundation, |
28 | Inc., 59 Temple Place - Suite 330, | 28 | Inc., 59 Temple Place - Suite 330, |
29 | Boston, MA 02111-1307, USA. | 29 | Boston, MA 02111-1307, USA. |
30 | */ | 30 | */ |
31 | 31 | ||
32 | // Include this header without OPIE_NO_DEBUG defined to avoid having the oDebugInfo | 32 | // Include this header without OPIE_NO_DEBUG defined to avoid having the oDebugInfo |
33 | // functions inlined to noops (which would then conflict with their definition here). | 33 | // functions inlined to noops (which would then conflict with their definition here). |
34 | 34 | ||
35 | #include <opie2/odebug.h> | 35 | #include <opie2/odebug.h> |
36 | 36 | ||
37 | #if defined(__UCLIBC__) | ||
38 | #define OPIE_NO_BACKTRACE | ||
39 | #endif | ||
40 | |||
37 | #ifdef OPIE_NO_DEBUG | 41 | #ifdef OPIE_NO_DEBUG |
38 | #undef odDebug | 42 | #undef odDebug |
39 | #undef odBacktrace | 43 | #undef odBacktrace |
40 | #endif | 44 | #endif |
41 | 45 | ||
42 | /* OPIE */ | 46 | /* OPIE */ |
43 | 47 | ||
44 | #include <opie2/oapplication.h> | 48 | #include <opie2/oapplication.h> |
45 | #include <opie2/oglobalsettings.h> | 49 | #include <opie2/oglobalsettings.h> |
46 | #include <opie2/oconfig.h> | 50 | #include <opie2/oconfig.h> |
47 | 51 | ||
48 | /* QT */ | 52 | /* QT */ |
49 | 53 | ||
50 | #include <qfile.h> | 54 | #include <qfile.h> |
51 | #include <qmessagebox.h> | 55 | #include <qmessagebox.h> |
52 | #include <qsocketdevice.h> | 56 | #include <qsocketdevice.h> |
53 | 57 | ||
54 | /* UNIX */ | 58 | /* UNIX */ |
55 | 59 | ||
56 | #include <stdlib.h> // abort | 60 | #include <stdlib.h> // abort |
57 | #include <unistd.h> // getpid | 61 | #include <unistd.h> // getpid |
58 | #include <stdarg.h> // vararg stuff | 62 | #include <stdarg.h> // vararg stuff |
59 | #include <ctype.h> // isprint | 63 | #include <ctype.h> // isprint |
60 | #include <syslog.h> | 64 | #include <syslog.h> |
61 | #include <errno.h> | 65 | #include <errno.h> |
62 | #include <string.h> | 66 | #include <string.h> |
63 | 67 | ||
64 | #ifndef OPIE_NO_BACKTRACE | 68 | #ifndef OPIE_NO_BACKTRACE |
65 | #include <execinfo.h> | 69 | #include <execinfo.h> |
66 | #endif | 70 | #endif |
67 | 71 | ||
68 | namespace Opie { | 72 | namespace Opie { |