debugger: start with some infrastructure for tracepoint support

This commit is contained in:
hjk
2010-12-16 13:02:59 +01:00
parent be1f662104
commit f0b6bce057
8 changed files with 36 additions and 4 deletions

View File

@@ -83,6 +83,12 @@ QIcon BreakHandler::watchpointIcon()
return icon;
}
QIcon BreakHandler::tracepointIcon()
{
static QIcon icon(_(":/debugger/images/tracepoint.png"));
return icon;
}
QIcon BreakHandler::emptyIcon()
{
static QIcon icon(_(":/debugger/images/breakpoint_pending_16.png"));
@@ -1064,6 +1070,8 @@ QIcon BreakHandler::BreakpointItem::icon() const
{
// FIXME: This seems to be called on each cursor blink as soon as the
// cursor is near a line with a breakpoint marker (+/- 2 lines or so).
if (data.isTracepoint())
return BreakHandler::tracepointIcon();
if (data.type == Watchpoint)
return BreakHandler::watchpointIcon();
if (!data.enabled)