398.1.6
by Monty Taylor
Removed __alpha__ references. |
1 |
/* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
390.1.2
by Monty Taylor
Fixed copyright headers in drizzled/ |
2 |
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
3 |
*
|
|
4 |
* Copyright (C) 2008 Sun Microsystems
|
|
5 |
*
|
|
6 |
* This program is free software; you can redistribute it and/or modify
|
|
7 |
* it under the terms of the GNU General Public License as published by
|
|
8 |
* the Free Software Foundation; version 2 of the License.
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program; if not, write to the Free Software
|
|
17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
18 |
*/
|
|
1
by brian
clean slate |
19 |
|
212.5.39
by Monty Taylor
Phew. Moved my_base and my_global. |
20 |
#include "global.h" |
21 |
||
398.1.6
by Monty Taylor
Removed __alpha__ references. |
22 |
#ifdef __cplusplus
|
1
by brian
clean slate |
23 |
extern "C" { |
24 |
#endif
|
|
25 |
||
492.3.27
by Lee
merge latest changes from the trunk and changes to get drizzle building on Soalris 10 (SPARC) |
26 |
#if defined(HAVE_BACKTRACE) && HAVE_BACKTRACE_SYMBOLS && HAVE_CXXABI_H && HAVE_ABI_CXA_DEMANGLE
|
1
by brian
clean slate |
27 |
#define BACKTRACE_DEMANGLE 1
|
28 |
#endif
|
|
29 |
||
492.3.27
by Lee
merge latest changes from the trunk and changes to get drizzle building on Soalris 10 (SPARC) |
30 |
#if defined(BACKTRACE_DEMANGLE)
|
398.1.6
by Monty Taylor
Removed __alpha__ references. |
31 |
char *my_demangle(const char *mangled_name, int *status); |
1
by brian
clean slate |
32 |
#endif
|
33 |
||
434
by Monty Taylor
Fixed stacktrace linking/building problem on OSX. |
34 |
#ifdef TARGET_OS_LINUX
|
398.1.6
by Monty Taylor
Removed __alpha__ references. |
35 |
#if defined(HAVE_STACKTRACE) || (defined (__x86_64__) || defined (__i386__) )
|
1
by brian
clean slate |
36 |
#undef HAVE_STACKTRACE
|
37 |
#define HAVE_STACKTRACE
|
|
38 |
||
398.1.6
by Monty Taylor
Removed __alpha__ references. |
39 |
extern char* __bss_start; |
40 |
extern char* heap_start; |
|
1
by brian
clean slate |
41 |
|
42 |
#define init_stacktrace() do { \
|
|
398.1.6
by Monty Taylor
Removed __alpha__ references. |
43 |
heap_start = (char*) &__bss_start; \
|
44 |
} while(0);
|
|
45 |
void check_thread_lib(void); |
|
46 |
#endif /* defined (__i386__) */ |
|
434
by Monty Taylor
Fixed stacktrace linking/building problem on OSX. |
47 |
#endif /* defined HAVE_OS_LINUX */ |
1
by brian
clean slate |
48 |
|
49 |
#ifdef HAVE_STACKTRACE
|
|
629.2.7
by Monty Taylor
Fixed a couple of memory buffer size issues. |
50 |
void print_stacktrace(unsigned char* stack_bottom, size_t thread_stack); |
398.1.6
by Monty Taylor
Removed __alpha__ references. |
51 |
void safe_print_str(const char* name, const char* val, int max_len); |
1
by brian
clean slate |
52 |
#else
|
53 |
/* Define empty prototypes for functions that are not implemented */
|
|
54 |
#define init_stacktrace() {}
|
|
55 |
#define print_stacktrace(A,B) {}
|
|
56 |
#define safe_print_str(A,B,C) {}
|
|
57 |
#endif /* HAVE_STACKTRACE */ |
|
58 |
||
59 |
||
398.1.6
by Monty Taylor
Removed __alpha__ references. |
60 |
void write_core(int sig); |
1
by brian
clean slate |
61 |
|
398.1.6
by Monty Taylor
Removed __alpha__ references. |
62 |
#ifdef __cplusplus
|
1
by brian
clean slate |
63 |
}
|
64 |
#endif
|