Commit bb516e49 authored by hjk's avatar hjk

Debugger: Escape quotes in GDB breakpoint conditions

Task-number: QTCREATORBUG-15821
Change-Id: I81faf3d31598538c04f843694b04f938bfb61a6e
Reviewed-by: default avatarMitch Curtis <mitch.curtis@theqtcompany.com>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 4a0b2039
......@@ -2773,7 +2773,7 @@ void GdbEngine::insertBreakpoint(Breakpoint bp)
QByteArray condition = bp.condition();
if (!condition.isEmpty())
cmd.function += " -c \"" + condition + "\" ";
cmd.function += " -c \"" + condition.replace('"', "\\\"") + "\" ";
cmd.function += breakpointLocation(bp.parameters());
cmd.callback = [this, bp](const DebuggerResponse &r) { handleBreakInsert1(r, bp); };
......
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