blob: b1e451bd1dd18b57e59d5d9101c3b683f588dc88 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <string>
#include <vector>
#include "lib/fxl/macros.h"
namespace debugger_utils {
struct BuildId {
std::string build_id;
std::string file;
};
class BuildIdTable {
public:
BuildIdTable() = default;
bool ReadIdsFile(const std::string& file);
const BuildId* LookupBuildId(const std::string& bid);
private:
void AddBuildId(const std::string& file_dir, const std::string& build_id,
const std::string& path);
std::vector<BuildId> build_ids_;
FXL_DISALLOW_COPY_AND_ASSIGN(BuildIdTable);
};
} // namespace debugger_utils