summaryrefslogtreecommitdiff
path: root/src/mongo/util/debug_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/debug_util.cpp')
-rw-r--r--src/mongo/util/debug_util.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/util/debug_util.cpp b/src/mongo/util/debug_util.cpp
index 816b0af4a2d..a496e882c67 100644
--- a/src/mongo/util/debug_util.cpp
+++ b/src/mongo/util/debug_util.cpp
@@ -22,7 +22,6 @@
#endif
#if defined(USE_GDBSERVER)
-#include "mongo/db/cmdline.h"
#include "mongo/db/jsobj.h"
#endif // defined(USE_GDBSERVER)
@@ -53,13 +52,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());