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:
Jan Henning 2018-03-25 19:37:58 +02:00
parent 6835957d77
commit 380d398020

View File

@ -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);
}