blob: 1b92d89bda596285d64c105b71e38451329c348e [file]
// 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.
#ifndef SRC_DEVELOPER_FORENSICS_EXCEPTIONS_CRASH_REPORT_GENERATION_H_
#define SRC_DEVELOPER_FORENSICS_EXCEPTIONS_CRASH_REPORT_GENERATION_H_
#include <lib/zx/exception.h>
#include <lib/zx/vmo.h>
#include <third_party/crashpad/util/file/string_file.h>
namespace forensics {
namespace exceptions {
// 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 exceptions
} // namespace forensics
#endif // SRC_DEVELOPER_FORENSICS_EXCEPTIONS_CRASH_REPORT_GENERATION_H_