MCPcopy Create free account
hub / github.com/Vector35/debugger / SerializeMetadata

Method SerializeMetadata

core/debuggerstate.cpp:552–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550
551
552void 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
567void DebuggerBreakpoints::UnserializedMetadata()

Callers

nothing calls this directly

Calls 2

GetDataMethod · 0.45
GetControllerMethod · 0.45

Tested by

no test coverage detected