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_ |