MCPcopy Create free account
hub / github.com/apache/brpc / DebugBreak

Function DebugBreak

src/butil/debug/debugger_posix.cc:217–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215// use a debugger.
216namespace {
217void DebugBreak() {
218 if (!BeingDebugged()) {
219 abort();
220 } else {
221#if defined(DEBUG_BREAK_ASM)
222 DEBUG_BREAK_ASM();
223#else
224 volatile int go = 0;
225 while (!go) {
226 butil::PlatformThread::Sleep(butil::TimeDelta::FromMilliseconds(100));
227 }
228#endif
229 }
230}
231} // namespace
232#define DEBUG_BREAK() DebugBreak()
233#elif defined(DEBUG_BREAK_ASM)

Callers

nothing calls this directly

Calls 1

BeingDebuggedFunction · 0.85

Tested by

no test coverage detected