Commit a6037c38 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Compile on Windows.

parent 4c8a2935
...@@ -518,20 +518,21 @@ void GdbEngine::tryLoadDebuggingHelpersClassic() ...@@ -518,20 +518,21 @@ void GdbEngine::tryLoadDebuggingHelpersClassic()
else else
dlopenLib = manager()->qtDumperLibraryName().toLocal8Bit(); dlopenLib = manager()->qtDumperLibraryName().toLocal8Bit();
// Do not use STRINGIFY as we really want to expand that to a number. // Do not use STRINGIFY for RTLD_NOW as we really want to expand that to a number.
const QByteArray flag = QByteArray::number(RTLD_NOW);
#if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN) #if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN)
// We are using Python on Windows and Symbian. // We are using Python on Windows and Symbian.
QTC_ASSERT(false, /**/); QTC_ASSERT(false, /**/);
#elif defined(Q_OS_MAC) #elif defined(Q_OS_MAC)
//postCommand("sharedlibrary libc"); // for malloc //postCommand("sharedlibrary libc"); // for malloc
//postCommand("sharedlibrary libdl"); // for dlopen //postCommand("sharedlibrary libdl"); // for dlopen
const QByteArray flag = QByteArray::number(RTLD_NOW);
postCommand("call (void)dlopen(\"" + GdbMi::escapeCString(dlopenLib) postCommand("call (void)dlopen(\"" + GdbMi::escapeCString(dlopenLib)
+ "\", " + flag + ")", + "\", " + flag + ")",
CB(handleDebuggingHelperSetup)); CB(handleDebuggingHelperSetup));
//postCommand("sharedlibrary " + dotEscape(dlopenLib)); //postCommand("sharedlibrary " + dotEscape(dlopenLib));
#else #else
//postCommand("p dlopen"); //postCommand("p dlopen");
const QByteArray flag = QByteArray::number(RTLD_NOW);
postCommand("sharedlibrary libc"); // for malloc postCommand("sharedlibrary libc"); // for malloc
postCommand("sharedlibrary libdl"); // for dlopen postCommand("sharedlibrary libdl"); // for dlopen
postCommand("call (void*)dlopen(\"" + GdbMi::escapeCString(dlopenLib) postCommand("call (void*)dlopen(\"" + GdbMi::escapeCString(dlopenLib)
......
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