Skip to content

Commit

Permalink
Cleanup file headers, platform independence
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavidberger committed Feb 18, 2017
1 parent 2880a77 commit 3995681
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
6 changes: 2 additions & 4 deletions Source/cmDebugServer.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Created by justin on 2/3/17.
//

/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmDebugServer.h"
#include "cmDebugServerConsole.h"
#include "cmMakefile.h"
Expand Down
6 changes: 2 additions & 4 deletions Source/cmDebugServer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Created by justin on 2/3/17.
//

/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#pragma once

#include "cmDebugger.h"
Expand Down
6 changes: 2 additions & 4 deletions Source/cmDebugServerConsole.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Created by J on 1/29/2017.
//

/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmDebugServerConsole.h"
#include "cmConnection.h"
#include "cmMakefile.h"
Expand Down
2 changes: 2 additions & 0 deletions Source/cmDebugServerConsole.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef CMAKE_CMDEBUGSERVERSIMPLE_H
#define CMAKE_CMDEBUGSERVERSIMPLE_H

Expand Down
10 changes: 8 additions & 2 deletions Source/cmDebugServerJson.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmDebugServerJson.h"
#include "cmMakefile.h"
#include <cmyajl/include/yajl/yajl_parse.h>
#include <zconf.h>
#include "cmsys/SystemInformation.hxx"

static cmsys::SystemInformation info;

#if defined(CMAKE_BUILD_WITH_CMAKE)
#include "cm_jsoncpp_reader.h"
Expand Down Expand Up @@ -173,7 +177,9 @@ void cmDebugServerJson::SendStateUpdate(cmConnection* connection)

std::string state = "";
Json::Value value;
value["PID"] = ::getpid();

value["PID"] = info.GetProcessId();

switch (Debugger.CurrentState()) {
case cmDebugger::State::Running:
value["State"] = "Running";
Expand Down
2 changes: 2 additions & 0 deletions Source/cmDebugServerJson.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#pragma once

#include "cmDebugServer.h"
Expand Down
6 changes: 2 additions & 4 deletions Source/cmDebugger.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Created by J on 1/28/2017.
//

/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmDebugger.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
Expand Down

0 comments on commit 3995681

Please sign in to comment.