summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerstartparameters.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/debuggerstartparameters.h')
-rw-r--r--src/plugins/debugger/debuggerstartparameters.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/plugins/debugger/debuggerstartparameters.h b/src/plugins/debugger/debuggerstartparameters.h
index 33a73e863b..27ebf7bd40 100644
--- a/src/plugins/debugger/debuggerstartparameters.h
+++ b/src/plugins/debugger/debuggerstartparameters.h
@@ -23,14 +23,14 @@
**
****************************************************************************/
-#ifndef DEBUGGER_DEBUGGERSTARTPARAMETERS_H
-#define DEBUGGER_DEBUGGERSTARTPARAMETERS_H
+#pragma once
#include "debugger_global.h"
#include "debuggerconstants.h"
#include <ssh/sshconnection.h>
#include <utils/environment.h>
+#include <utils/port.h>
#include <projectexplorer/abi.h>
#include <projectexplorer/runconfiguration.h>
#include <projectexplorer/runnables.h>
@@ -45,14 +45,13 @@ namespace Debugger {
// Note: This is part of the "soft interface" of the debugger plugin.
// Do not add anything that needs implementation in a .cpp file.
-const int InvalidPort = -1;
const qint64 InvalidPid = -1;
class DEBUGGER_EXPORT RemoteSetupResult
{
public:
- int gdbServerPort = InvalidPort;
- int qmlServerPort = InvalidPort;
+ Utils::Port gdbServerPort;
+ Utils::Port qmlServerPort;
qint64 inferiorPid = InvalidPid;
bool success = false;
QString reason;
@@ -74,7 +73,7 @@ public:
// Used by Qml debugging.
QString qmlServerAddress;
- int qmlServerPort = InvalidPort;
+ Utils::Port qmlServerPort;
// Used by general remote debugging.
QString remoteChannel;
@@ -110,6 +109,3 @@ public:
Q_DECLARE_METATYPE(Debugger::RemoteSetupResult)
Q_DECLARE_METATYPE(Debugger::DebuggerStartParameters)
-
-#endif // DEBUGGER_DEBUGGERSTARTPARAMETERS_H
-