debugger: put the address of the loaded helpers into the debugger log

This commit is contained in:
hjk
2009-04-15 16:48:06 +02:00
parent 500b5e20b5
commit 5cb0a3cb72
2 changed files with 8 additions and 7 deletions

View File

@@ -202,11 +202,12 @@ QT_END_NAMESPACE
#endif // PRIVATE_OBJECT_ALLOWED #endif // PRIVATE_OBJECT_ALLOWED
// this can be mangled typenames of nested templates, each char-by-char // This can be mangled typenames of nested templates, each char-by-char
// comma-separated integer list // comma-separated integer list...
static char qDumpInBuffer[10000]; char qDumpInBuffer[10000];
static char qDumpOutBuffer[100000];
//static char qDumpSize[20]; // The output buffer.
char qDumpOutBuffer[100000];
namespace { namespace {

View File

@@ -4151,10 +4151,10 @@ void GdbEngine::tryLoadDebuggingHelpers()
QString flag = QString::number(RTLD_NOW); QString flag = QString::number(RTLD_NOW);
sendCommand("sharedlibrary libc"); // for malloc sendCommand("sharedlibrary libc"); // for malloc
sendCommand("sharedlibrary libdl"); // for dlopen sendCommand("sharedlibrary libdl"); // for dlopen
sendCommand("call (void)dlopen(\"" + lib + "\", " + flag + ")", sendCommand("call (void*)dlopen(\"" + lib + "\", " + flag + ")",
WatchDebuggingHelperSetup); WatchDebuggingHelperSetup);
// some older systems like CentOS 4.6 prefer this: // some older systems like CentOS 4.6 prefer this:
sendCommand("call (void)__dlopen(\"" + lib + "\", " + flag + ")", sendCommand("call (void*)__dlopen(\"" + lib + "\", " + flag + ")",
WatchDebuggingHelperSetup); WatchDebuggingHelperSetup);
sendCommand("sharedlibrary " + dotEscape(lib)); sendCommand("sharedlibrary " + dotEscape(lib));
#endif #endif