MCPcopy Create free account
hub / github.com/KDAB/GammaRay / abiForExecutable

Method abiForExecutable

launcher/core/probeabidetector.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24ProbeABIDetector::ProbeABIDetector() = default;
25
26ProbeABI ProbeABIDetector::abiForExecutable(const QString &path) const
27{
28 const QVector<ProbeABI> abis = abiForQtCore(qtCoreForExecutable(path));
29 if (abis.isEmpty()) {
30 return {};
31 }
32 // Assume you want to run the one your system cpu is about if it exists
33 // It could be improved asking the user which of the multiple abis
34 // they want to run
35 for (const ProbeABI &abi : abis) {
36 if (abi.architecture() == QSysInfo::currentCpuArchitecture()) {
37 return abi;
38 }
39 }
40 return abis[0];
41}
42
43ProbeABI ProbeABIDetector::abiForProcess(qint64 pid) const
44{

Callers 5

mainFunction · 0.80
detectABIMethod · 0.80
testLauncherMethod · 0.80
testLauncherStyleMethod · 0.80

Calls 2

isEmptyMethod · 0.45
architectureMethod · 0.45

Tested by 2

testLauncherMethod · 0.64
testLauncherStyleMethod · 0.64