Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Riley authored and Dan Riley committed Feb 3, 2021
1 parent f7fc02a commit 57e071c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions FWCore/Services/plugins/InitRootHandlers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,9 @@ namespace edm {
->setComment(
"If True, do an abort when a signal occurs that causes a crash. If False, ROOT will do an exit which "
"attempts to do a clean shutdown.");
desc.addUntracked<bool>("InteractiveDebug", false)->setComment("If True, leave gdb attached to cmsRun after a crash; "
desc.addUntracked<bool>("InteractiveDebug", false)
->setComment(
"If True, leave gdb attached to cmsRun after a crash; "
"if False, attach gdb, print a stack trace, and quit gdb");
desc.addUntracked<int>("DebugLevel", 0)->setComment("Sets ROOT's gDebug value.");
desc.addUntracked<int>("StackTracePauseTime", 300)
Expand All @@ -895,18 +897,16 @@ namespace edm {
}
std::string gdbcmd{"date; gdb -quiet -p %d"};
if (!interactiveDebug_) {
gdbcmd += " 2>&1 <<EOF |\n"
"set width 0\n"
"set height 0\n"
"set pagination no\n"
"thread apply all bt\n"
"EOF\n"
"/bin/sed -n -e 's/^\\((gdb) \\)*//' -e '/^#/p' -e '/^Thread/p'";
}
if (snprintf(pidString_,
pidStringLength_ - 1,
gdbcmd.c_str(),
getpid()) >= pidStringLength_) {
gdbcmd +=
" 2>&1 <<EOF |\n"
"set width 0\n"
"set height 0\n"
"set pagination no\n"
"thread apply all bt\n"
"EOF\n"
"/bin/sed -n -e 's/^\\((gdb) \\)*//' -e '/^#/p' -e '/^Thread/p'";
}
if (snprintf(pidString_, pidStringLength_ - 1, gdbcmd.c_str(), getpid()) >= pidStringLength_) {
std::ostringstream sstr;
sstr << "Unable to pre-allocate stacktrace handler information";
edm::Exception except(edm::errors::OtherCMS, sstr.str());
Expand Down

0 comments on commit 57e071c

Please sign in to comment.