diff options
author | hjk <qtc-committer@nokia.com> | 2011-06-21 16:45:23 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-06-22 12:23:46 +0200 |
commit | 41df1fb2d3983ccd1ef9bdd2810c3b394a62d028 (patch) | |
tree | 710655c521cc2382af5610c62bac064dc16a5c43 /src/plugins/debugger/debuggerstreamops.cpp | |
parent | a7d8f346796cb31dc1e7129df1850d2d885a4e35 (diff) |
debugger: rewrite parser for cli sub-breakpoint notifications
Change-Id: I971a2af2534bc650e8c604a5c2dc2e1846dbb045
Reviewed-on: http://codereview.qt.nokia.com/592
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/debugger/debuggerstreamops.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerstreamops.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggerstreamops.cpp b/src/plugins/debugger/debuggerstreamops.cpp index 05aa64e2cb..f7451c0a32 100644 --- a/src/plugins/debugger/debuggerstreamops.cpp +++ b/src/plugins/debugger/debuggerstreamops.cpp @@ -147,7 +147,7 @@ QDataStream &operator>>(QDataStream &stream, StackFrames &frames) QDataStream &operator<<(QDataStream &stream, const BreakpointResponse &s) { - stream << s.number; + stream << s.id.majorPart(); stream << s.condition; stream << s.ignoreCount; stream << s.fileName; @@ -157,12 +157,15 @@ QDataStream &operator<<(QDataStream &stream, const BreakpointResponse &s) stream << s.threadSpec; stream << s.functionName; stream << s.address; + stream << s.hitCount; return stream; } QDataStream &operator>>(QDataStream &stream, BreakpointResponse &s) { - stream >> s.number; + int majorPart; + stream >> majorPart; + s.id = BreakpointId(majorPart); stream >> s.condition; stream >> s.ignoreCount; stream >> s.fileName; @@ -172,6 +175,7 @@ QDataStream &operator>>(QDataStream &stream, BreakpointResponse &s) stream >> s.threadSpec; stream >> s.functionName; stream >> s.address; + stream >> s.hitCount; return stream; } |