mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-27 19:12:27 +00:00
R=mark@chromium.org BUG=crashpad:86, chromium:571144 Review URL: https://codereview.chromium.org/1533183002 .
44 lines
1.7 KiB
C++
44 lines
1.7 KiB
C++
// Copyright 2016 The Crashpad Authors. All rights reserved.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef CRASHPAD_SNAPSHOT_WIN_CAPTURE_CONTEXT_MEMORY_H_
|
|
#define CRASHPAD_SNAPSHOT_WIN_CAPTURE_CONTEXT_MEMORY_H_
|
|
|
|
#include "snapshot/cpu_context.h"
|
|
#include "snapshot/win/process_reader_win.h"
|
|
#include "util/stdlib/pointer_container.h"
|
|
|
|
namespace crashpad {
|
|
namespace internal {
|
|
|
|
class MemorySnapshotWin;
|
|
|
|
//! \brief For all registers that appear to be pointer-like in \a context,
|
|
//! captures a small amount of memory near their pointed to location.
|
|
//!
|
|
//! \param[in] context The context to inspect.
|
|
//! \param[in] process_reader A ProcessReaderWin to read from the target
|
|
//! process.
|
|
//! \param[in] thread The thread to which the context belongs.
|
|
//! \param[out] into A vector of pointers to append new ranges to.
|
|
void CaptureMemoryPointedToByContext(const CPUContext& context,
|
|
ProcessReaderWin* process_reader,
|
|
const ProcessReaderWin::Thread& thread,
|
|
PointerVector<MemorySnapshotWin>* into);
|
|
|
|
} // namespace internal
|
|
} // namespace crashpad
|
|
|
|
#endif // CRASHPAD_SNAPSHOT_WIN_CAPTURE_CONTEXT_MEMORY_H_
|