Commit 1ef57027 authored by Jordan Bayles's avatar Jordan Bayles Committed by Commit Bot

Update Break in openscreen platform

This patch updates debugging breaking in openscreen's logging platform.

TBR=btolsch@chromium.org

Change-Id: Id0d855b898e32d38ed99fb2e7ef67534b40a9fe5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2555585Reviewed-by: default avatarJordan Bayles <jophba@chromium.org>
Commit-Queue: Jordan Bayles <jophba@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830673}
parent eca462b8
...@@ -51,7 +51,10 @@ void Break() { ...@@ -51,7 +51,10 @@ void Break() {
#if defined(OFFICIAL_BUILD) && defined(NDEBUG) #if defined(OFFICIAL_BUILD) && defined(NDEBUG)
IMMEDIATE_CRASH(); IMMEDIATE_CRASH();
#else #else
::base::debug::BreakDebugger(); // Chrome's base::debug::BreakDebugger is not properly annotated as
// [[noreturn]], so we abort instead. This may need to be revisited
// if we want MSVC support in the future.
std::abort();
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment