Commit 38e6d415 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger[CDB]: Fix watchpoints, observe size parameter.

parent 70a5a6ac
......@@ -176,8 +176,10 @@ QByteArray cdbAddBreakpointCommand(const BreakpointParameters &bpIn,
str << bp.module << '!';
str << cdbBreakPointFileName(bp, sourcePathMapping) << ':' << bp.lineNumber << '`';
break;
case Watchpoint: // Read/write 1 byte
str << "rw 1 " << hex << hexPrefixOn << bp.address << hexPrefixOff << dec;
case Watchpoint: { // Read/write, no space here
const unsigned size = bp.size ? bp.size : 1;
str << "r" << size << ' ' << hex << hexPrefixOn << bp.address << hexPrefixOff << dec;
}
break;
}
if (bp.ignoreCount)
......
Markdown is supported
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