summaryrefslogtreecommitdiff
path: root/src/mongo/util/debug_util.cpp
diff options
context:
space:
mode:
authorApollon Oikonomopoulos <apoikos@debian.org>2016-01-14 00:10:06 +0200
committerApollon Oikonomopoulos <apollon@skroutz.gr>2016-01-14 00:10:06 +0200
commit374e1947abcd3e127a2a613aff73ecffdb9199ea (patch)
treed83973c3c9802450acd5b5e86fe0d4e8e60a3a1b /src/mongo/util/debug_util.cpp
parent65585c90b12d6523bea75a2aebaae2a2fdf9e641 (diff)
Imported Upstream version 2.6.11upstream/2.6.11
Diffstat (limited to 'src/mongo/util/debug_util.cpp')
-rw-r--r--src/mongo/util/debug_util.cpp10
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());