| 50 | |
| 51 | |
| 52 | std::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 | } |
nothing calls this directly
no test coverage detected