chromium/third_party/breakpad/breakpad/src/processor/dump_context.cc

// Copyright 2010 Google LLC
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//     * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//     * Neither the name of Google LLC nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

// dump_context.cc: A (mini/micro)dump context.
//
// See dump_context.h for documentation.

#ifdef HAVE_CONFIG_H
#include <config.h>  // Must come first
#endif

#include "google_breakpad/processor/dump_context.h"

#include <assert.h>

#ifdef _WIN32
#include <io.h>
#else  // _WIN32
#include <unistd.h>
#endif  // _WIN32

#include "common/stdio_wrapper.h"
#include "processor/logging.h"

namespace google_breakpad {

DumpContext::DumpContext() :{}

DumpContext::~DumpContext() {}

uint32_t DumpContext::GetContextCPU() const {}

uint32_t DumpContext::GetContextFlags() const {}

const MDRawContextX86* DumpContext::GetContextX86() const {}

const MDRawContextPPC* DumpContext::GetContextPPC() const {}

const MDRawContextPPC64* DumpContext::GetContextPPC64() const {}

const MDRawContextAMD64* DumpContext::GetContextAMD64() const {}

const MDRawContextSPARC* DumpContext::GetContextSPARC() const {}

const MDRawContextARM* DumpContext::GetContextARM() const {}

const MDRawContextARM64* DumpContext::GetContextARM64() const {}

const MDRawContextMIPS* DumpContext::GetContextMIPS() const {}

const MDRawContextRISCV* DumpContext::GetContextRISCV() const {}

const MDRawContextRISCV64* DumpContext::GetContextRISCV64() const {}

bool DumpContext::GetInstructionPointer(uint64_t* ip) const {}

bool DumpContext::GetStackPointer(uint64_t* sp) const {}

void DumpContext::SetContextFlags(uint32_t context_flags) {}

void DumpContext::SetContextX86(MDRawContextX86* x86) {}

void DumpContext::SetContextPPC(MDRawContextPPC* ppc) {}

void DumpContext::SetContextPPC64(MDRawContextPPC64* ppc64) {}

void DumpContext::SetContextAMD64(MDRawContextAMD64* amd64) {}

void DumpContext::SetContextSPARC(MDRawContextSPARC* ctx_sparc) {}

void DumpContext::SetContextARM(MDRawContextARM* arm) {}

void DumpContext::SetContextARM64(MDRawContextARM64* arm64) {}

void DumpContext::SetContextMIPS(MDRawContextMIPS* ctx_mips) {}

void DumpContext::SetContextRISCV(MDRawContextRISCV* riscv) {}

void DumpContext::SetContextRISCV64(MDRawContextRISCV64* riscv64) {}

void DumpContext::FreeContext() {}

void DumpContext::Print() {}

}  // namespace google_breakpad