blob: 6155dfa688addd9ff20d1f2baefdc71cfcd56835 [file] [log] [blame]
// Copyright 2018 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.
#include "garnet/bin/zxdb/symbols/loaded_module_symbols.h"
#include "garnet/bin/zxdb/symbols/module_symbols.h"
namespace zxdb {
LoadedModuleSymbols::LoadedModuleSymbols(
fxl::RefPtr<SystemSymbols::ModuleRef> module, std::string build_id,
uint64_t load_address)
: module_(std::move(module)),
load_address_(load_address),
build_id_(std::move(build_id)),
symbol_context_(load_address) {}
LoadedModuleSymbols::~LoadedModuleSymbols() = default;
std::vector<Location> LoadedModuleSymbols::ResolveInputLocation(
const InputLocation& input_location, const ResolveOptions& options) const {
return module_symbols()->ResolveInputLocation(symbol_context(),
input_location, options);
}
} // namespace zxdb