| 305 | } |
| 306 | |
| 307 | bool BreakpointManager::ShouldTriggerBreakpoint(std::vector<CallStackFrame> const & stack, Node * bpNode, |
| 308 | uint64_t bpNodeId, BreakpointType bpType, GlobalBreakpointType globalBpType) |
| 309 | { |
| 310 | if (debuggingDisabled_) { |
| 311 | return false; |
| 312 | } |
| 313 | |
| 314 | // Check if there is a breakpoint on this node ID |
| 315 | auto it = breakpoints_->find(bpNodeId); |
| 316 | if (it != breakpoints_->end() |
| 317 | && (it->second.type & bpType)) { |
| 318 | return true; |
| 319 | } |
| 320 | |
| 321 | // Check if there is a global breakpoint for this frame type |
| 322 | if (globalBreakpoints_ & globalBpType) { |
| 323 | return true; |
| 324 | } |
| 325 | |
| 326 | // Check if we're single stepping |
| 327 | if (forceBreakpoint_ |
| 328 | && ForcedBreakpointConditionsSatisfied(stack, bpNode, bpType)) { |
| 329 | return true; |
| 330 | } |
| 331 | |
| 332 | return false; |
| 333 | } |
| 334 | |
| 335 | bool BreakpointManager::ShouldTriggerGlobalBreakpoint(GlobalBreakpointType globalBpType) |
| 336 | { |
no outgoing calls
no test coverage detected