| 550 | |
| 551 | |
| 552 | void DebuggerBreakpoints::SerializeMetadata() |
| 553 | { |
| 554 | // TODO: who should free these Metadata objects? |
| 555 | std::vector<Ref<Metadata>> breakpoints; |
| 556 | for (const ModuleNameAndOffset& bp : m_breakpoints) |
| 557 | { |
| 558 | std::map<std::string, Ref<Metadata>> info; |
| 559 | info["module"] = new Metadata(bp.module); |
| 560 | info["offset"] = new Metadata(bp.offset); |
| 561 | breakpoints.push_back(new Metadata(info)); |
| 562 | } |
| 563 | m_state->GetController()->GetData()->StoreMetadata("debugger.breakpoints", new Metadata(breakpoints)); |
| 564 | } |
| 565 | |
| 566 | |
| 567 | void DebuggerBreakpoints::UnserializedMetadata() |
nothing calls this directly
no test coverage detected