Calling DebugBreak() on Windows during fatal checks instead of relying on abort().

Bug: webrtc:10846
Change-Id: Ie701f47b9b7c9d88ea983540dce3f429903a18f7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/147879
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28771}
This commit is contained in:
Tommi
2019-08-05 14:48:30 +02:00
committed by Commit Bot
parent 7ba3b81ff5
commit a22cab8a65

View File

@ -157,6 +157,9 @@ RTC_NORETURN void FatalLog(const char* file,
fflush(stdout);
fprintf(stderr, "%s", output);
fflush(stderr);
#if defined(WEBRTC_WIN)
DebugBreak();
#endif
abort();
}