diff --git launcher/injector/injectorfactory.cpp launcher/injector/injectorfactory.cpp
index 4464859..ae26cfa 100644
|
|
AbstractInjector::Ptr defaultInjectorForLaunch(const ProbeABI &abi) |
77 | 77 | #if defined(Q_OS_MAC) |
78 | 78 | if (abi.majorQtVersion() >= 5 && abi.minorQtVersion() >= 4) |
79 | 79 | return createInjector(QLatin1String("preload")); |
80 | | return findFirstWorkingInjector(QStringList() << QLatin1String("gdb") << QLatin1String("lldb")); |
| 80 | return findFirstWorkingInjector(QStringList() << QLatin1String("lldb") << QLatin1String("gdb")); |
81 | 81 | #elif defined(Q_OS_UNIX) |
82 | 82 | Q_UNUSED(abi); |
83 | 83 | return createInjector(QLatin1String("preload")); |
… |
… |
AbstractInjector::Ptr defaultInjectorForLaunch(const ProbeABI &abi) |
89 | 89 | |
90 | 90 | AbstractInjector::Ptr defaultInjectorForAttach() |
91 | 91 | { |
92 | | #ifndef Q_OS_WIN |
| 92 | #ifdef Q_OS_MAC |
| 93 | return findFirstWorkingInjector(QStringList() << QLatin1String("lldb") << QLatin1String("gdb")); |
| 94 | #elif !defined(Q_OS_WIN) |
93 | 95 | return findFirstWorkingInjector(QStringList() << QLatin1String("gdb") << QLatin1String("lldb")); |
94 | 96 | #else |
95 | 97 | return createInjector(QLatin1String("windll")); |