Changeset View
Changeset View
Standalone View
Standalone View
addons/gdbplugin/debugview.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | |||||
115 | 115 | | |||
116 | bool DebugView::debuggerBusy() const | 116 | bool DebugView::debuggerBusy() const | ||
117 | { | 117 | { | ||
118 | return(m_state == executingCmd); | 118 | return(m_state == executingCmd); | ||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | bool DebugView::hasBreakpoint(const QUrl& url, int line) | 121 | bool DebugView::hasBreakpoint(const QUrl& url, int line) | ||
122 | { | 122 | { | ||
123 | for (int i = 0; i<m_breakPointList.size(); i++) { | 123 | for (const auto& breakpoint : qAsConst(m_breakPointList)) { | ||
124 | if ((url == m_breakPointList[i].file) && (line == m_breakPointList[i].line)) { | 124 | if ((url == breakpoint.file) && (line == breakpoint.line)) { | ||
125 | return true; | 125 | return true; | ||
126 | } | 126 | } | ||
127 | } | 127 | } | ||
128 | return false; | 128 | return false; | ||
129 | } | 129 | } | ||
130 | 130 | | |||
131 | void DebugView::toggleBreakpoint(QUrl const& url, int line) | 131 | void DebugView::toggleBreakpoint(QUrl const& url, int line) | ||
132 | { | 132 | { | ||
▲ Show 20 Lines • Show All 564 Lines • Show Last 20 Lines |