Commit 808b5df5 authored by hjk's avatar hjk

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

Task:   Message-ID: <b3dce35e57024e108c753d6fe40fdc23@7e24035161164d75927b8103ef1a2cdf> @qt-creator
parent c0344c6d
......@@ -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>
......
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment