diff options
Diffstat (limited to 'src/mongo/util/debug_util.cpp')
| -rw-r--r-- | src/mongo/util/debug_util.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/util/debug_util.cpp b/src/mongo/util/debug_util.cpp index e217fe7e51d..d1317e810ff 100644 --- a/src/mongo/util/debug_util.cpp +++ b/src/mongo/util/debug_util.cpp @@ -15,13 +15,15 @@ * limitations under the License. */ -#include "pch.h" +#include "mongo/pch.h" + +#include "mongo/db/server_options.h" + #ifndef _WIN32 #include <signal.h> #endif #if defined(USE_GDBSERVER) -#include "mongo/db/cmdline.h" #include "mongo/db/jsobj.h" #endif // defined(USE_GDBSERVER) @@ -52,13 +54,13 @@ namespace mongo { * Assumptions: * 1) gdbserver is on your path * 2) You have run "handle SIGSTOP noprint" in gdb - * 3) cmdLine.port + 2000 is free + * 3) serverGlobalParams.port + 2000 is free */ void launchGDB(int) { // Don't come back here signal(SIGTRAP, SIG_IGN); - int newPort = cmdLine.port + 2000; + int newPort = serverGlobalParams.port + 2000; string newPortStr = "localhost:" + BSONObjBuilder::numStr(newPort); string pidToDebug = BSONObjBuilder::numStr(getpid()); |
