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:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user