forked from qt-creator/qt-creator
Debugger: Escape quotes in GDB breakpoint conditions
Task-number: QTCREATORBUG-15821 Change-Id: I81faf3d31598538c04f843694b04f938bfb61a6e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -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); };
|
||||
|
Reference in New Issue
Block a user