forked from qt-creator/qt-creator
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user