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

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: typo 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
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..4356d2d47f61a65065fba98c8d69be6e2d22ffd4
--- /dev/null
+++ b/snapshot/win/capture_context_memory.h
@@ -0,0 +1,41 @@
+// Copyright 2015 The Crashpad Authors. All rights reserved.
Mark Mentovai 2016/01/08 19:20:52 2016, and in the .cc too.
scottmg 2016/01/08 19:52:02 Done.
+//
+// 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 "util/stdlib/pointer_container.h"
+
+namespace crashpad {
+
+class ProcessReaderWin;
+
+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[out] into A vector of pointers to append new ranges to.
+void CaptureMemoryPointedToByContext(const CPUContext& context,
+ ProcessReaderWin* process_reader,
+ PointerVector<MemorySnapshotWin>* into);
+
+} // namespace internal
+} // namespace crashpad
+
+#endif // CRASHPAD_SNAPSHOT_WIN_CAPTURE_CONTEXT_MEMORY_H_

Powered by Google App Engine
This is Rietveld 408576698