Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: snapshot/win/capture_context_memory.h

Issue 1533183002: win: Capture some memory pointed at by context (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: mac Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « snapshot/test/test_exception_snapshot.cc ('k') | snapshot/win/capture_context_memory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/capture_context_memory.h
diff --git a/snapshot/win/capture_context_memory.h b/snapshot/win/capture_context_memory.h
new file mode 100644
index 0000000000000000000000000000000000000000..d4f4e038eda3cfdefffd6cf3c4dc873fb4f933c7
--- /dev/null
+++ b/snapshot/win/capture_context_memory.h
@@ -0,0 +1,43 @@
+// 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_
« no previous file with comments | « snapshot/test/test_exception_snapshot.cc ('k') | snapshot/win/capture_context_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698