forked from qt-creator/qt-creator
CDB: Add setting to add breakpoint at CrtDbgReport().
- Factor out message/tooltips for breakpoints on functions. - Add stringlist of break functions to CdbOptions. - Set breakpoints with module, ignore response. Change-Id: If5cf7647b190057c18d8499b9f4862696610e4f6 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -200,6 +200,24 @@ bool CommonOptionsPage::matches(const QString &s) const
|
||||
return m_searchKeywords.contains(s, Qt::CaseInsensitive);
|
||||
}
|
||||
|
||||
QString CommonOptionsPage::msgSetBreakpointAtFunction(const char *function)
|
||||
{
|
||||
return tr("Stop when %1() is called").arg(QLatin1String(function));
|
||||
}
|
||||
|
||||
QString CommonOptionsPage::msgSetBreakpointAtFunctionToolTip(const char *function,
|
||||
const QString &hint)
|
||||
{
|
||||
QString result = QLatin1String("<html><head/><body>");
|
||||
result += tr("Always add a breakpoint on the <i>%1()</i> function.").arg(QLatin1String(function));
|
||||
if (!hint.isEmpty()) {
|
||||
result += QLatin1String("<br>");
|
||||
result += hint;
|
||||
}
|
||||
result += QLatin1String("</body></html>");
|
||||
return result;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// LocalsAndExpressionsOptionsPage
|
||||
|
||||
Reference in New Issue
Block a user