Commit 3c7b1f4a authored by hjk's avatar hjk
Browse files

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

parent 6f56ad0a
...@@ -204,10 +204,10 @@ QT_END_NAMESPACE ...@@ -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) ...@@ -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( ...@@ -2630,4 +2630,5 @@ void qDumpObjectData440(
else { else {
qDebug() << "Unsupported protocol version" << protocolVersion; qDebug() << "Unsupported protocol version" << protocolVersion;
} }
return qDumpOutBuffer;
} }
Supports Markdown
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