forked from qt-creator/qt-creator
Debugger: Do not use LD_PRELOAD on Mac.
Fails for system Qt on 10.6. Reviewed-By: hjk <qtc-committer@nokia.com>
This commit is contained in:
@@ -60,7 +60,8 @@ PlainGdbAdapter::PlainGdbAdapter(GdbEngine *engine, QObject *parent)
|
||||
|
||||
AbstractGdbAdapter::DumperHandling PlainGdbAdapter::dumperHandling() const
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
// LD_PRELOAD fails for System-Qt on Mac.
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
|
||||
return DumperLoadedByGdb;
|
||||
#else
|
||||
return DumperLoadedByGdbPreload;
|
||||
|
@@ -71,7 +71,8 @@ TermGdbAdapter::~TermGdbAdapter()
|
||||
|
||||
AbstractGdbAdapter::DumperHandling TermGdbAdapter::dumperHandling() const
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
// LD_PRELOAD fails for System-Qt on Mac.
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
|
||||
return DumperLoadedByGdb;
|
||||
#else
|
||||
return DumperLoadedByAdapter; // Handles loading itself via LD_PRELOAD
|
||||
|
Reference in New Issue
Block a user