Ticket #47883: patch-prefer-lldb.diff

File patch-prefer-lldb.diff, 1.2 KB (added by RJVB (René Bertin), 9 years ago)
  • launcher/injector/injectorfactory.cpp

    diff --git launcher/injector/injectorfactory.cpp launcher/injector/injectorfactory.cpp
    index 4464859..ae26cfa 100644
    AbstractInjector::Ptr defaultInjectorForLaunch(const ProbeABI &abi) 
    7777#if defined(Q_OS_MAC)
    7878  if (abi.majorQtVersion() >= 5 && abi.minorQtVersion() >= 4)
    7979    return createInjector(QLatin1String("preload"));
    80   return findFirstWorkingInjector(QStringList() << QLatin1String("gdb") << QLatin1String("lldb"));
     80  return findFirstWorkingInjector(QStringList() << QLatin1String("lldb") << QLatin1String("gdb"));
    8181#elif defined(Q_OS_UNIX)
    8282  Q_UNUSED(abi);
    8383  return createInjector(QLatin1String("preload"));
    AbstractInjector::Ptr defaultInjectorForLaunch(const ProbeABI &abi) 
    8989
    9090AbstractInjector::Ptr defaultInjectorForAttach()
    9191{
    92 #ifndef Q_OS_WIN
     92#ifdef Q_OS_MAC
     93  return findFirstWorkingInjector(QStringList() << QLatin1String("lldb") << QLatin1String("gdb"));
     94#elif !defined(Q_OS_WIN)
    9395  return findFirstWorkingInjector(QStringList() << QLatin1String("gdb") << QLatin1String("lldb"));
    9496#else
    9597  return createInjector(QLatin1String("windll"));