Add a no-op breakpoint_me for easy gdb'ing.

This commit is contained in:
Alex Miller 2019-02-07 17:02:14 -08:00
parent 65136a2ecd
commit 601b229c05
2 changed files with 6 additions and 0 deletions

View File

@ -117,3 +117,7 @@ void ErrorCodeTable::addCode(int code, const char *name, const char *description
bool isAssertDisabled(int line) {
return FLOW_KNOBS && (FLOW_KNOBS->DISABLE_ASSERTS == -1 || FLOW_KNOBS->DISABLE_ASSERTS == line);
}
void breakpoint_me() {
return;
}

View File

@ -98,6 +98,8 @@ extern bool isAssertDisabled( int line );
catch(Error &e) { criticalError(FDB_EXIT_ABORT, "AbortOnError", e.what()); } \
catch(...) { criticalError(FDB_EXIT_ABORT, "AbortOnError", "Aborted due to unknown error"); }
EXTERNC void breakpoint_me();
#ifdef FDB_CLEAN_BUILD
# define NOT_IN_CLEAN BOOST_STATIC_ASSERT_MSG(0, "This code can not be enabled in a clean build.");
#else