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

Unified Diff: snapshot/win/process_reader_win.h

Issue 1360863006: win: Add more memory regions to gathering of PEB (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@save-peb
Patch Set: . Created 5 years, 3 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 | « no previous file | snapshot/win/process_reader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/process_reader_win.h
diff --git a/snapshot/win/process_reader_win.h b/snapshot/win/process_reader_win.h
index 285fb7f03f8b55a2a6e1940509d571f7cdc40f10..90a115d540ac92a2634464eadc4c0bfe015690e0 100644
--- a/snapshot/win/process_reader_win.h
+++ b/snapshot/win/process_reader_win.h
@@ -83,8 +83,26 @@ class ProcessReaderWin {
//! \return `true` if the target task is a 64-bit process.
bool Is64Bit() const { return process_info_.Is64Bit(); }
+ //! \brief Attempts to read \a num_bytes bytes from the target process
+ //! starting at address \a at into \a into.
+ //!
+ //! \return `true` if the entire region could be read, or `false` with an
+ //! error logged.
+ //!
+ //! \sa ReadAvailableMemory
bool ReadMemory(WinVMAddress at, WinVMSize num_bytes, void* into) const;
+ //! \brief Attempts to read \a num_bytes bytes from the target process
+ //! starting at address \a at into \a into. If some of the specified range
+ //! is not accessible, reads up to the first inaccessible byte.
+ //!
+ //! \return The actual number of bytes read.
+ //!
+ //! \sa ReadMemory
+ WinVMSize ReadAvailableMemory(WinVMAddress at,
+ WinVMSize num_bytes,
+ void* into) const;
+
//! \brief Determines the target process' start time.
//!
//! \param[out] start_time The time that the process started.
« no previous file with comments | « no previous file | snapshot/win/process_reader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698