debugger: return the address of the output buffer from the dumpers

This commit is contained in:
hjk
2009-04-16 08:43:00 +02:00
parent 6f56ad0ac3
commit 3c7b1f4a80

View File

@@ -204,10 +204,10 @@ QT_END_NAMESPACE
// 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...
char qDumpInBuffer[10000]; Q_DECL_EXPORT char qDumpInBuffer[10000];
// The output buffer. // The output buffer.
char qDumpOutBuffer[100000]; Q_DECL_EXPORT char qDumpOutBuffer[100000];
namespace { namespace {
@@ -2525,7 +2525,7 @@ static void handleProtocolVersion2and3(QDumper & d)
extern "C" Q_DECL_EXPORT extern "C" Q_DECL_EXPORT
void qDumpObjectData440( void *qDumpObjectData440(
int protocolVersion, int protocolVersion,
int token, int token,
void *data, void *data,
@@ -2630,4 +2630,5 @@ void qDumpObjectData440(
else { else {
qDebug() << "Unsupported protocol version" << protocolVersion; qDebug() << "Unsupported protocol version" << protocolVersion;
} }
return qDumpOutBuffer;
} }