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

Method GetAvailableAdapters

api/debugadaptertype.cpp:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52std::vector<std::string> DebugAdapterType::GetAvailableAdapters(Ref<BinaryView> data)
53{
54 size_t count;
55 char** adapters = BNGetAvailableDebugAdapterTypes(data->GetObject(), &count);
56
57 std::vector<std::string> result;
58 result.reserve(count);
59 for (size_t i = 0; i < count; i++)
60 {
61 result.push_back(adapters[i]);
62 }
63
64 BNDebuggerFreeStringList(adapters, count);
65 return result;
66}

Callers

nothing calls this directly

Calls 3

BNDebuggerFreeStringListFunction · 0.85
GetObjectMethod · 0.45

Tested by

no test coverage detected