MCPcopy Create free account
hub / github.com/Norbyte/ositools / HandleSetBreakpoints

Method HandleSetBreakpoints

OsiInterface/DebugMessages.cpp:361–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359 }
360
361 void DebugMessageHandler::HandleSetBreakpoints(uint32_t seq, DbgSetBreakpoints const & req)
362 {
363 Debug(" --> DbgSetBreakpoints()");
364
365 ResultCode rc;
366 if (!debugger_) {
367 Debug("SetBreakpoint: Not attached to story debugger!");
368 rc = ResultCode::NoDebuggee;
369 }
370 else
371 {
372 rc = ResultCode::Success;
373
374 debugger_->Breakpoints().BeginUpdatingNodeBreakpoints();
375 for (auto const & bp : req.breakpoint()) {
376 Debug("AddBreakpoint(node %d, goal %d, action %d, flags %d)",
377 bp.node_id(), bp.goal_id(), bp.action_index(), bp.breakpoint_mask());
378 rc = debugger_->Breakpoints().AddBreakpoint(
379 bp.node_id(),
380 bp.goal_id(),
381 bp.is_init_action(),
382 bp.action_index(),
383 (BreakpointType)bp.breakpoint_mask()
384 );
385
386 if (rc != ResultCode::Success) {
387 break;
388 }
389 }
390
391 debugger_->FinishUpdatingNodeBreakpoints();
392 }
393
394 SendResult(seq, rc);
395 }
396
397 void DebugMessageHandler::HandleGetDatabaseContents(uint32_t seq, DbgGetDatabaseContents const & req)
398 {

Callers

nothing calls this directly

Calls 4

DebugFunction · 0.85
AddBreakpointMethod · 0.80

Tested by

no test coverage detected