blob: 3e819bfcadfa7ffe8cf456cebbfec04c7255ae82 [file] [log] [blame]
// Copyright 2019 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 <lib/zx/exception.h>
#include <lib/zx/vmo.h>
#include <third_party/crashpad/util/file/string_file.h>
namespace fuchsia {
namespace exception {
// If |string_file| is empty, this function will error out.
// The resulting vmo will not be valid on error.
// Mostly exposed for testing purposes, but valid as a standalone function.
zx::vmo GenerateVMOFromStringFile(const crashpad::StringFile& string_file);
zx::vmo GenerateMinidumpVMO(const zx::exception& exception, std::string* process_name);
} // namespace exception
} // namespace fuchsia