aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2019-12-10 11:05:00 +0100
committerhjk <[email protected]>2019-12-10 11:43:50 +0000
commit0e49f11ca32f7be608d51a6357c84d809031f680 (patch)
tree36676da28e215cfc387fefc4dfc67af860849782 /src/plugins/debugger/debuggerplugin.cpp
parentb1a29dedfca0be2795970bb2df13e2b892664762 (diff)
Debugger: Avoid a few clang warnings
Change of signedness and/or size. Change-Id: I126d36d406afbba4b7383bf8326d845db79cdde7 Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 1436278a79d..d75389764a6 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1289,7 +1289,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
*errorMessage = msgParameterMissing(*it);
return false;
}
- const qulonglong pid = it->toULongLong();
+ const qint64 pid = it->toLongLong();
const QStringList args = it->split(',');
Kit *kit = nullptr;
@@ -1372,7 +1372,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
*errorMessage = msgParameterMissing(*it);
return false;
}
- qint64 pid = it->section(':', 1, 1).toULongLong();
+ qint64 pid = it->section(':', 1, 1).toLongLong();
auto runControl = new RunControl(ProjectExplorer::Constants::DEBUG_RUN_MODE);
runControl->setKit(findUniversalCdbKit());
auto debugger = new DebuggerRunTool(runControl);
@@ -1612,7 +1612,7 @@ void DebuggerPluginPrivate::startRemoteCdbSession()
class RemoteAttachRunner : public DebuggerRunTool
{
public:
- RemoteAttachRunner(RunControl *runControl, int pid)
+ RemoteAttachRunner(RunControl *runControl, ProcessHandle pid)
: DebuggerRunTool(runControl)
{
setId("AttachToRunningProcess");
@@ -1620,7 +1620,7 @@ public:
auto gdbServer = new GdbServerRunner(runControl, portsGatherer());
gdbServer->setUseMulti(false);
- gdbServer->setAttachPid(ProcessHandle(pid));
+ gdbServer->setAttachPid(pid);
addStartDependency(gdbServer);
@@ -1661,7 +1661,7 @@ void DebuggerPluginPrivate::attachToRunningApplication()
runControl->setKit(kit);
//: %1: PID
runControl->setDisplayName(tr("Process %1").arg(process.pid));
- auto debugger = new RemoteAttachRunner(runControl, process.pid);
+ auto debugger = new RemoteAttachRunner(runControl, ProcessHandle(process.pid));
debugger->startRunControl();
}
}
@@ -1883,7 +1883,7 @@ void DebuggerPluginPrivate::requestContextMenu(TextEditorWidget *widget,
}
// Run to, jump to line below in stopped state.
- for (const QPointer<DebuggerEngine> engine : EngineManager::engines()) {
+ for (const QPointer<DebuggerEngine> &engine : EngineManager::engines()) {
if (engine->state() == InferiorStopOk && args.isValid()) {
menu->addSeparator();
if (engine->hasCapability(RunToLineCapability)) {