Fixes: try __dlopen and dlopen to make systems like CentOS 4.6 happy

Task:   Message-ID: <b3dce35e57024e108c753d6fe40fdc23@7e24035161164d75927b8103ef1a2cdf> @qt-creator
This commit is contained in:
hjk
2009-01-05 12:54:52 +01:00
parent c0344c6dac
commit 808b5df55d
2 changed files with 4 additions and 2 deletions

View File

@@ -63,10 +63,10 @@
#include <utils/qtcassert.h>
#include <QtCore/QDebug>
#include <QtCore/qplugin.h>
#include <QtCore/QObject>
#include <QtCore/QPoint>
#include <QtCore/QSettings>
#include <QtCore/QtPlugin>
#include <QtGui/QPlainTextEdit>
#include <QtGui/QTextBlock>

View File

@@ -3945,7 +3945,9 @@ void GdbEngine::tryLoadCustomDumpers()
if (qq->useFastStart())
sendCommand("set stop-on-solib-events 0");
QString flag = QString::number(RTLD_NOW);
sendCommand("call dlopen(\"" + lib + "\", " + flag + ")");
sendCommand("call (void)dlopen(\"" + lib + "\", " + flag + ")");
// some older systems like CentOS 4.6 prefer this:
sendCommand("call (void)__dlopen(\"" + lib + "\", " + flag + ")");
sendCommand("sharedlibrary " + dotEscape(lib));
if (qq->useFastStart())
sendCommand("set stop-on-solib-events 1");