forked from qt-creator/qt-creator
Add missing type information into gdb calls.
The missing type information lead to non-relocatable debugging helpers on the Mac. Reviewed-by: Oswald Buddenhagen
This commit is contained in:
@@ -3145,7 +3145,7 @@ void GdbEngine::runDebuggingHelper(const WatchData &data0, bool dumpChildren)
|
||||
sendWatchParameters(params);
|
||||
|
||||
QString cmd ="call "
|
||||
+ QString("qDumpObjectData440(")
|
||||
+ QString("(void*)qDumpObjectData440(")
|
||||
+ QString::number(protocol)
|
||||
+ ',' + "%1+1" // placeholder for token
|
||||
+ ',' + addr
|
||||
@@ -3441,7 +3441,7 @@ void GdbEngine::sendWatchParameters(const QByteArray ¶ms0)
|
||||
QByteArray params = params0;
|
||||
params.append('\0');
|
||||
char buf[50];
|
||||
sprintf(buf, "set {char[%d]} qDumpInBuffer = {", params.size());
|
||||
sprintf(buf, "set {char[%d]} &qDumpInBuffer = {", params.size());
|
||||
QByteArray encoded;
|
||||
encoded.append(buf);
|
||||
for (int i = 0; i != params.size(); ++i) {
|
||||
@@ -4179,14 +4179,14 @@ void GdbEngine::tryLoadDebuggingHelpers()
|
||||
sendCommand("sharedlibrary " + dotEscape(lib));
|
||||
#endif
|
||||
// retreive list of dumpable classes
|
||||
sendCommand("call qDumpObjectData440(1,%1+1,0,0,0,0,0,0)");
|
||||
sendCommand("call (void*)qDumpObjectData440(1,%1+1,0,0,0,0,0,0)");
|
||||
sendCommand("p (char*)&qDumpOutBuffer", GdbQueryDebuggingHelper);
|
||||
}
|
||||
|
||||
void GdbEngine::recheckDebuggingHelperAvailability()
|
||||
{
|
||||
// retreive list of dumpable classes
|
||||
sendCommand("call qDumpObjectData440(1,%1+1,0,0,0,0,0,0)");
|
||||
sendCommand("call (void*)qDumpObjectData440(1,%1+1,0,0,0,0,0,0)");
|
||||
sendCommand("p (char*)&qDumpOutBuffer", GdbQueryDebuggingHelper);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user