From 84790f9aefc267262961d766aba5394d9f8db2f9 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 14 May 2014 10:20:03 +0200 Subject: CDB: Only use codemodel breakpoint correction for old cdbs. Since version 6.2 cdb supports setting breakpoints on non codelines and automatically set it to the next available line. Change-Id: I27facf4f2463bad76a20ef0abb5a5412471c296f Reviewed-by: Friedemann Kleint --- src/plugins/debugger/cdb/cdbparsehelpers.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/plugins/debugger/cdb/cdbparsehelpers.cpp') diff --git a/src/plugins/debugger/cdb/cdbparsehelpers.cpp b/src/plugins/debugger/cdb/cdbparsehelpers.cpp index 2e488cb2d2..980e22735c 100644 --- a/src/plugins/debugger/cdb/cdbparsehelpers.cpp +++ b/src/plugins/debugger/cdb/cdbparsehelpers.cpp @@ -300,6 +300,13 @@ void parseBreakPoint(const GdbMi &gdbmi, BreakpointResponse *r, const GdbMi moduleG = gdbmi["module"]; if (moduleG.isValid()) r->module = QString::fromLocal8Bit(moduleG.data()); + const GdbMi sourceFileName = gdbmi["srcfile"]; + if (sourceFileName.isValid()) { + r->fileName = QString::fromLocal8Bit(sourceFileName.data()); + const GdbMi lineNumber = gdbmi["srcline"]; + if (lineNumber.isValid()) + r->lineNumber = lineNumber.data().toULongLong(0, 0); + } if (expression) { const GdbMi expressionG = gdbmi["expression"]; if (expressionG.isValid()) -- cgit v1.2.1