mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 1448693
- Make DumpJSStack() output appear somewhere visible on Android. r=mrbkap
... by additionally writing it to the logcat. MozReview-Commit-ID: CvaUOhlNFQ1 --HG-- extra : rebase_source : aae760f7730b148fba12d3a97777568a47adc707
This commit is contained in:
parent
6835957d77
commit
380d398020
@ -14,6 +14,10 @@
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID
|
||||
#include <android/log.h>
|
||||
#endif
|
||||
|
||||
static void DebugDump(const char* fmt, ...)
|
||||
{
|
||||
char buffer[2048];
|
||||
@ -30,6 +34,8 @@ static void DebugDump(const char* fmt, ...)
|
||||
if (IsDebuggerPresent()) {
|
||||
OutputDebugStringA(buffer);
|
||||
}
|
||||
#elif defined(ANDROID)
|
||||
__android_log_write(ANDROID_LOG_DEBUG, "Gecko", buffer);
|
||||
#endif
|
||||
printf("%s", buffer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user