diff options
-rw-r--r-- | android/execinfo.cc | 13 | ||||
-rw-r--r-- | android/execinfo.h | 10 |
2 files changed, 20 insertions, 3 deletions
diff --git a/android/execinfo.cc b/android/execinfo.cc new file mode 100644 index 0000000..b2e0e66 --- /dev/null +++ b/android/execinfo.cc @@ -0,0 +1,13 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "execinfo.h" + +int backtrace(void **array, int size) { return 0; } + +char **backtrace_symbols(void *const *array, int size) { return 0; } + +void backtrace_symbols_fd (void *const *array, int size, int fd) {} + + diff --git a/android/execinfo.h b/android/execinfo.h index 98bf4c9..b0d9836 100644 --- a/android/execinfo.h +++ b/android/execinfo.h @@ -1,10 +1,14 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + #ifndef FAKE_EXECINFO_H #define FAKE_EXECINFO_H -int backtrace(void **array, int size) { return 0; } +int backtrace(void **array, int size); -char **backtrace_symbols(void *const *array, int size) { return 0; } +char **backtrace_symbols(void *const *array, int size); -void backtrace_symbols_fd (void *const *array, int size, int fd) {} +void backtrace_symbols_fd (void *const *array, int size, int fd); #endif |