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

Unified Diff: util/win/process_info.h

Issue 1364053002: win: Save contents of PEB to minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@save-teb
Patch Set: fixes 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
Index: util/win/process_info.h
diff --git a/util/win/process_info.h b/util/win/process_info.h
index 02514739381e4a6cbbc0c37a63b42e1f3631e053..ed07ab09f6b8ef27a51c6c456cdd7f40c2a285d1 100644
--- a/util/win/process_info.h
+++ b/util/win/process_info.h
@@ -78,6 +78,13 @@ class ProcessInfo {
//! Block.
bool CommandLine(std::wstring* command_line) const;
+ //! \brief Gets the address and size of the process's Process Environment
+ //! Block.
+ //!
+ //! \param[out] peb_address The address of the Process Environment Block.
+ //! \param[out] peb_size The size of the Process Environment Block.
+ void Peb(WinVMAddress* peb_address, WinVMSize* peb_size) const;
+
//! \brief Retrieves the modules loaded into the target process.
//!
//! The modules are enumerated in initialization order as detailed in the
@@ -90,7 +97,8 @@ class ProcessInfo {
friend bool GetProcessBasicInformation(HANDLE process,
bool is_wow64,
ProcessInfo* process_info,
- WinVMAddress* peb_address);
+ WinVMAddress* peb_address,
+ WinVMSize* peb_size);
template <class Traits>
friend bool ReadProcessData(HANDLE process,
WinVMAddress peb_address_vmaddr,
@@ -99,6 +107,8 @@ class ProcessInfo {
pid_t process_id_;
pid_t inherited_from_process_id_;
std::wstring command_line_;
+ WinVMAddress peb_address_;
+ WinVMSize peb_size_;
std::vector<Module> modules_;
bool is_64_bit_;
bool is_wow64_;

Powered by Google App Engine
This is Rietveld 408576698