Commit 1af67204 authored by hjk's avatar hjk
Browse files

debugger: prevent crash if breakpoint has been removed before the 'info line'

response was received
parent e94b6d95
......@@ -2414,6 +2414,8 @@ void GdbEngine::handleInfoLine(const GdbResponse &response)
const int bpNumber = response.cookie.toInt();
const BreakHandler *handler = manager()->breakHandler();
BreakpointData *data = handler->findBreakpoint(bpNumber);
if (!data)
QByteArray ba ="consolestreamoutput").data();
const int pos = ba.indexOf(' ', 5);
if (ba.startsWith("Line ") && pos != -1) {
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