diff options
author | Ben Murdoch <benm@google.com> | 2010-11-19 11:35:43 +0000 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-11-19 14:57:00 +0000 |
commit | 34b5a0345856ab7743b6daa5a1fea1dcbe0c3394 (patch) | |
tree | 0730e3fda4f753f8b5d7abc0cc288b7bcd436139 /base | |
parent | b3e95cdb5b817517e21fdc304181ea64165d4d30 (diff) | |
download | external_chromium-34b5a0345856ab7743b6daa5a1fea1dcbe0c3394.zip external_chromium-34b5a0345856ab7743b6daa5a1fea1dcbe0c3394.tar.gz external_chromium-34b5a0345856ab7743b6daa5a1fea1dcbe0c3394.tar.bz2 |
Merge Chromium at r65505: Merge ANDROID edits into new debugging file
We previously had edits to base/debug_util_posix.cc, this file has been
moved to base/debug/debugger_posix.cc. Merge our edits accross.
http://src.chromium.org/viewvc/chrome?view=rev&revision=63859
Change-Id: I25ad39619858115cad943a02f4aa7f4ecbb9b38e
Diffstat (limited to 'base')
-rw-r--r-- | base/debug/stack_trace_posix.cc | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc index e4b0ef2..5d5d88d 100644 --- a/base/debug/stack_trace_posix.cc +++ b/base/debug/stack_trace_posix.cc @@ -108,6 +108,9 @@ void DemangleSymbols(std::string* text) { bool GetBacktraceStrings(void **trace, int size, std::vector<std::string>* trace_strings, std::string* error_message) { +#ifdef ANDROID + return false; +#endif bool symbolized = false; #if defined(USE_SYMBOLIZE) @@ -150,11 +153,15 @@ bool GetBacktraceStrings(void **trace, int size, } // namespace StackTrace::StackTrace() { -#if defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 +#if (defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) || defined(ANDROID) +#if defined(ANDROID) + return; +#else if (backtrace == NULL) { count_ = 0; return; } +#endif // ANDROID #endif // Though the backtrace API man page does not list any possible negative // return values, we take no chance. @@ -162,9 +169,13 @@ StackTrace::StackTrace() { } void StackTrace::PrintBacktrace() { -#if defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 +#if (defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) || defined(ANDROID) +#if defined(ANDROID) + return; +#else if (backtrace_symbols_fd == NULL) return; +#endif // ANDROID #endif fflush(stderr); std::vector<std::string> trace_strings; @@ -175,9 +186,13 @@ void StackTrace::PrintBacktrace() { } void StackTrace::OutputToStream(std::ostream* os) { -#if defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 +#if (defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) || defined(ANDROID) +#if defined(ANDROID) + return; +#else if (backtrace_symbols == NULL) return; +#endif // ANDROID #endif std::vector<std::string> trace_strings; std::string error_message; |