diff --git a/doc/generated/doxygen/annotated.html b/doc/generated/doxygen/annotated.html index 65602533..3e987072 100644 --- a/doc/generated/doxygen/annotated.html +++ b/doc/generated/doxygen/annotated.html @@ -93,17 +93,18 @@ $(function() {
- - - - - - - - - - - + + + + + + + + + + + + @@ -140,25 +141,27 @@ $(function() { - - - - - - + + + + + + - - - - - - - + + + + + + + + + @@ -256,76 +259,82 @@ $(function() { - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +No error occurred.
The report that was requested could not be located.
+This may occur when the report is present in the database but not in a state appropriate for the requested operation, for example, if GetReportForUploading() is called to obtain report that’s already in the completed state.
An error occured while performing a file operation on a crash report.
A database is responsible for managing both the metadata about a report and the actual crash report itself. This error is returned when an error occurred when managing the report file. Additional information will be logged.
diff --git a/doc/generated/doxygen/classcrashpad_1_1CrashReportExceptionHandler-members.html b/doc/generated/doxygen/classcrashpad_1_1CrashReportExceptionHandler-members.html index c691549a..65ebaaa2 100644 --- a/doc/generated/doxygen/classcrashpad_1_1CrashReportExceptionHandler-members.html +++ b/doc/generated/doxygen/classcrashpad_1_1CrashReportExceptionHandler-members.html @@ -71,8 +71,8 @@ $(function() {This is the complete list of members for crashpad::CrashReportExceptionHandler, including all inherited members.
CatchMachException(exception_behavior_t behavior, exception_handler_t exception_port, thread_t thread, task_t task, exception_type_t exception, const mach_exception_data_type_t *code, mach_msg_type_number_t code_count, thread_state_flavor_t *flavor, ConstThreadState old_state, mach_msg_type_number_t old_state_count, thread_state_t new_state, mach_msg_type_number_t *new_state_count, const mach_msg_trailer_t *trailer, bool *destroy_complex_request) override | crashpad::CrashReportExceptionHandler | virtual | |
CrashReportExceptionHandler(CrashReportDatabase *database, CrashReportUploadThread *upload_thread, const std::map< std::string, std::string > *process_annotations) | crashpad::CrashReportExceptionHandler | ||
CrashReportExceptionHandler(CrashReportDatabase *database, CrashReportUploadThread *upload_thread, const std::map< std::string, std::string > *process_annotations) | crashpad::CrashReportExceptionHandler | ||
CrashReportExceptionHandler(CrashReportDatabase *database, CrashReportUploadThread *upload_thread, const std::map< std::string, std::string > *process_annotations, const UserStreamDataSources *user_stream_data_sources) | crashpad::CrashReportExceptionHandler | ||
CrashReportExceptionHandler(CrashReportDatabase *database, CrashReportUploadThread *upload_thread, const std::map< std::string, std::string > *process_annotations, const UserStreamDataSources *user_stream_data_sources) | crashpad::CrashReportExceptionHandler | ||
ExceptionHandlerServerException(HANDLE process, WinVMAddress exception_information_address, WinVMAddress debug_critical_section_address) override | crashpad::CrashReportExceptionHandler | virtual | |
ExceptionHandlerServerStarted() override | crashpad::CrashReportExceptionHandler | virtual | |
~CrashReportExceptionHandler() (defined in crashpad::CrashReportExceptionHandler) | crashpad::CrashReportExceptionHandler |
Public Member Functions | |||
CrashReportExceptionHandler (CrashReportDatabase *database, CrashReportUploadThread *upload_thread, const std::map< std::string, std::string > *process_annotations) | |||
Creates a new object that will store crash reports in database. More... | |||
CrashReportExceptionHandler (CrashReportDatabase *database, CrashReportUploadThread *upload_thread, const std::map< std::string, std::string > *process_annotations, const UserStreamDataSources *user_stream_data_sources) | |||
Creates a new object that will store crash reports in database. More... | |||
kern_return_t | CatchMachException (exception_behavior_t behavior, exception_handler_t exception_port, thread_t thread, task_t task, exception_type_t exception, const mach_exception_data_type_t *code, mach_msg_type_number_t code_count, thread_state_flavor_t *flavor, ConstThreadState old_state, mach_msg_type_number_t old_state_count, thread_state_t new_state, mach_msg_type_number_t *new_state_count, const mach_msg_trailer_t *trailer, bool *destroy_complex_request) override | ||
Processes an exception message by writing a crash report to this object’s CrashReportDatabase. | |||
CrashReportExceptionHandler (CrashReportDatabase *database, CrashReportUploadThread *upload_thread, const std::map< std::string, std::string > *process_annotations) | |||
Creates a new object that will store crash reports in database. More... | |||
CrashReportExceptionHandler (CrashReportDatabase *database, CrashReportUploadThread *upload_thread, const std::map< std::string, std::string > *process_annotations, const UserStreamDataSources *user_stream_data_sources) | |||
Creates a new object that will store crash reports in database. More... | |||
void | ExceptionHandlerServerStarted () override | ||
Processes an exception message by writing a crash report to this object's CrashReportDatabase. | Detailed DescriptionAn exception handler that writes crash reports for exception messages to a CrashReportDatabase. Constructor & Destructor Documentation- -◆ CrashReportExceptionHandler() [1/2]+ +◆ CrashReportExceptionHandler() [1/2]
@@ -131,7 +131,13 @@ void | const std::map< std::string, std::string > * | -process_annotations | +process_annotations, | + +
+ | + | const UserStreamDataSources * | +user_stream_data_sources |
@@ -147,14 +153,15 @@ void | [in] | database | The database to store crash reports in. Weak. |
[in] | upload_thread | The upload thread to notify when a new crash report is written into database. | |
[in] | process_annotations | A map of annotations to insert as process-level annotations into each crash report that is written. Do not confuse this with module-level annotations, which are under the control of the crashing process, and are used to implement Chrome’s “crash keys.” Process-level annotations are those that are beyond the control of the crashing process, which must reliably be set even if the process crashes before it’s able to establish its own annotations. To interoperate with Breakpad servers, the recommended practice is to specify values for the "prod" and "ver" keys as process annotations. | |
[in] | user_stream_data_sources | Data sources to be used to extend crash reports. For each crash report that is written, the data sources are called in turn. These data sources may contribute additional minidump streams. nullptr if not required. |
"prod"
and "ver"
keys as process annotations. nullptr
if not required. This is the complete list of members for crashpad::MinidumpUserExtensionStreamDataSource, including all inherited members.
#include "minidump/minidump_user_extension_stream_data_source.h"
+Classes | |
class | Delegate |
An interface implemented by readers of MinidumpUserExtensionStreamDataSource. More... | |
Public Member Functions | |
MinidumpUserExtensionStreamDataSource (uint32_t stream_type, const void *buffer, size_t buffer_size) | |
Constructs a MinidumpUserExtensionStreamDataSource. More... | |
MinidumpUserExtensionStreamDataSource (uint32_t stream_type) | |
Constructs a MinidumpUserExtensionStreamDataSource. More... | |
MinidumpStreamType | stream_type () const |
-const void * | buffer () const |
-size_t | buffer_size () const |
+virtual size_t | StreamDataSize ()=0 |
The size of this data stream. | |
virtual bool | ReadStreamData (Delegate *delegate)=0 |
Calls Delegate::UserStreamDataSourceRead(), providing it with the stream data. More... | |
Describes a user extension data stream in a minidump.
|
+ +explicit | +
Constructs a MinidumpUserExtensionStreamDataSource.
[in] | stream_type | The type of the user extension stream. |
[in] | buffer | Points to the data for this stream. buffer is not owned, and must outlive the use of this object. |
[in] | buffer_size | The length of data in buffer. |
+
|
+ +pure virtual | +
Calls Delegate::UserStreamDataSourceRead(), providing it with the stream data.
+Implementations do not necessarily compute the stream data prior to this method being called. The stream data may be computed or loaded lazily and may be discarded after being passed to the delegate.
+false
on failure, otherwise, the return value of Delegate::ExtensionStreamDataSourceRead(), which should be true
on success and false
on failure. Implemented in crashpad::test::BufferExtensionStreamDataSource.
+This is the complete list of members for crashpad::MinidumpUserStreamWriter::BufferContentsWriter, including all inherited members.
+This is the complete list of members for crashpad::MinidumpUserExtensionStreamDataSource::Delegate, including all inherited members.
BufferContentsWriter(const void *buffer, size_t buffer_size) (defined in crashpad::MinidumpUserStreamWriter::BufferContentsWriter) | crashpad::MinidumpUserStreamWriter::BufferContentsWriter | inline |
GetSize() const override (defined in crashpad::MinidumpUserStreamWriter::BufferContentsWriter) | crashpad::MinidumpUserStreamWriter::BufferContentsWriter | inlinevirtual |
WriteContents(FileWriterInterface *writer) override (defined in crashpad::MinidumpUserStreamWriter::BufferContentsWriter) | crashpad::MinidumpUserStreamWriter::BufferContentsWriter | inlinevirtual |
~ContentsWriter() (defined in crashpad::MinidumpUserStreamWriter::ContentsWriter) | crashpad::MinidumpUserStreamWriter::ContentsWriter | inlinevirtual |
ExtensionStreamDataSourceRead(const void *data, size_t size)=0 | crashpad::MinidumpUserExtensionStreamDataSource::Delegate | pure virtual |
~Delegate() (defined in crashpad::MinidumpUserExtensionStreamDataSource::Delegate) | crashpad::MinidumpUserExtensionStreamDataSource::Delegate | inlineprotected |
+ Crashpad
+
+ |
+
An interface implemented by readers of MinidumpUserExtensionStreamDataSource. + More...
+ +#include "minidump/minidump_user_extension_stream_data_source.h"
+Public Member Functions | |
virtual bool | ExtensionStreamDataSourceRead (const void *data, size_t size)=0 |
Called by MinidumpUserExtensionStreamDataSource::Read() to provide data requested by a call to that method. More... | |
An interface implemented by readers of MinidumpUserExtensionStreamDataSource.
+
+
|
+ +pure virtual | +
Called by MinidumpUserExtensionStreamDataSource::Read() to provide data requested by a call to that method.
+[in] | data | A pointer to the data that was read. The callee does not take ownership of this data. This data is only valid for the duration of the call to this method. This parameter may be nullptr if size is 0 . |
[in] | size | The size of the data that was read. |
true
on success, false
on failure. MinidumpUserExtensionStreamDataSource::ReadStreamData() will use this as its own return value. Implemented in crashpad::MinidumpUserStreamWriter::ExtensionStreamContentsWriter.
+ +Classes | |
class | BufferContentsWriter |
class | ContentsWriter |
class | ExtensionStreamContentsWriter |
class | SnapshotContentsWriter |
void | InitializeFromSnapshot (const UserMinidumpStream *stream) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Initializes a MINIDUMP_USER_STREAM based on stream. More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
void | InitializeFromBuffer (MinidumpStreamType stream_type, const void *buffer, size_t buffer_size) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Initializes a MINIDUMP_USER_STREAM based on stream_type, buffer and buffer_size. More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
void | InitializeFromUserExtensionStream (std::unique_ptr< MinidumpUserExtensionStreamDataSource > data_source) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Initializes a MINIDUMP_USER_STREAM based on data_source. More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const MINIDUMP_DIRECTORY * | DirectoryListEntry () const | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns a MINIDUMP_DIRECTORY entry that serves as a pointer to this stream. More... |
void crashpad::MinidumpUserStreamWriter::InitializeFromBuffer | -( | -MinidumpStreamType | -stream_type, | -
- | - | const void * | -buffer, | -
- | - | size_t | -buffer_size | -
- | ) | -- |
Initializes a MINIDUMP_USER_STREAM based on stream_type, buffer and buffer_size.
-[in] | stream_type | The type of the stream. |
[in] | buffer | The data for the stream. |
[in] | buffer_size | The length of buffer, and the resulting stream. |
void crashpad::MinidumpUserStreamWriter::InitializeFromUserExtensionStream | +( | +std::unique_ptr< MinidumpUserExtensionStreamDataSource > | +data_source | ) | ++ |
Initializes a MINIDUMP_USER_STREAM based on data_source.
+[in] | data_source | The content and type of the stream. |
+ Crashpad
+
+ |
+
This is the complete list of members for crashpad::MinidumpUserStreamWriter::ExtensionStreamContentsWriter, including all inherited members.
+
+ Crashpad
+
+ |
+
+Public Member Functions | |
+ | ExtensionStreamContentsWriter (std::unique_ptr< MinidumpUserExtensionStreamDataSource > data_source) |
+bool | WriteContents (FileWriterInterface *writer) override |
+size_t | GetSize () const override |
bool | ExtensionStreamDataSourceRead (const void *data, size_t size) override |
Called by MinidumpUserExtensionStreamDataSource::Read() to provide data requested by a call to that method. More... | |
+
|
+ +inlineoverridevirtual | +
Called by MinidumpUserExtensionStreamDataSource::Read() to provide data requested by a call to that method.
+[in] | data | A pointer to the data that was read. The callee does not take ownership of this data. This data is only valid for the duration of the call to this method. This parameter may be nullptr if size is 0 . |
[in] | size | The size of the data that was read. |
true
on success, false
on failure. MinidumpUserExtensionStreamDataSource::ReadStreamData() will use this as its own return value. Implements crashpad::MinidumpUserExtensionStreamDataSource::Delegate.
+ +
+ Crashpad
+
+ |
+
This is the complete list of members for crashpad::Paths, including all inherited members.
+DISALLOW_IMPLICIT_CONSTRUCTORS(Paths) (defined in crashpad::Paths) | crashpad::Paths | |
Executable(base::FilePath *path) | crashpad::Paths | static |
+ Crashpad
+
+ |
+
Functions to obtain paths. + More...
+ +#include "util/misc/paths.h"
+Public Member Functions | |
+ | DISALLOW_IMPLICIT_CONSTRUCTORS (Paths) |
+Static Public Member Functions | |
static bool | Executable (base::FilePath *path) |
Obtains the pathname of the currently-running executable. More... | |
Functions to obtain paths.
+
+
|
+ +static | +
Obtains the pathname of the currently-running executable.
+[out] | path | The pathname of the currently-running executable. |
true
on success. false
on failure, with a message logged.
+ Crashpad
+
+ |
+
This is the complete list of members for crashpad::ProcessMemory, including all inherited members.
+Initialize(pid_t pid) | crashpad::ProcessMemory | |
ProcessMemory() (defined in crashpad::ProcessMemory) | crashpad::ProcessMemory | |
Read(LinuxVMAddress address, size_t size, void *buffer) const | crashpad::ProcessMemory | |
ReadCString(LinuxVMAddress address, std::string *string) const | crashpad::ProcessMemory | |
ReadCStringSizeLimited(LinuxVMAddress address, size_t size, std::string *string) const | crashpad::ProcessMemory | |
~ProcessMemory() (defined in crashpad::ProcessMemory) | crashpad::ProcessMemory |
+ Crashpad
+
+ |
+
Accesses the memory of another process. + More...
+ +#include "util/linux/process_memory.h"
+Public Member Functions | |
bool | Initialize (pid_t pid) |
Initializes this object to read the memory of a process whose ID is pid. More... | |
bool | Read (LinuxVMAddress address, size_t size, void *buffer) const |
Copies memory from the target process into a caller-provided buffer in the current process. More... | |
bool | ReadCString (LinuxVMAddress address, std::string *string) const |
Reads a NUL -terminated C string from the target process into a string in the current process. More... | |
bool | ReadCStringSizeLimited (LinuxVMAddress address, size_t size, std::string *string) const |
Reads a NUL -terminated C string from the target process into a string in the current process. More... | |
Accesses the memory of another process.
+bool crashpad::ProcessMemory::Initialize | +( | +pid_t | +pid | ) | ++ |
Initializes this object to read the memory of a process whose ID is pid.
+This method must be called successfully prior to calling any other method in this class.
+[in] | pid | The process ID of a target process. |
true
on success, false
on failure with a message logged. bool crashpad::ProcessMemory::Read | +( | +LinuxVMAddress | +address, | +
+ | + | size_t | +size, | +
+ | + | void * | +buffer | +
+ | ) | +const | +
Copies memory from the target process into a caller-provided buffer in the current process.
+[in] | address | The address, in the target process' address space, of the memory region to copy. |
[in] | size | The size, in bytes, of the memory region to copy. buffer must be at least this size. |
[out] | buffer | The buffer into which the contents of the other process' memory will be copied. |
true
on success, with buffer filled appropriately. false
on failure, with a message logged. bool crashpad::ProcessMemory::ReadCString | +( | +LinuxVMAddress | +address, | +
+ | + | std::string * | +string | +
+ | ) | +const | +
Reads a NUL
-terminated C string from the target process into a string in the current process.
The length of the string need not be known ahead of time. This method will read contiguous memory until a NUL
terminator is found.
[in] | address | The address, in the target process’s address space, of the string to copy. |
[out] | string | The string read from the other process. |
true
on success, with string set appropriately. false
on failure, with a message logged. Failures can occur, for example, when encountering unmapped or unreadable pages. bool crashpad::ProcessMemory::ReadCStringSizeLimited | +( | +LinuxVMAddress | +address, | +
+ | + | size_t | +size, | +
+ | + | std::string * | +string | +
+ | ) | +const | +
Reads a NUL
-terminated C string from the target process into a string in the current process.
[in] | address | The address, in the target process’s address space, of the string to copy. |
[in] | size | The maximum number of bytes to read. The string is required to be NUL -terminated within this many bytes. |
[out] | string | The string read from the other process. |
true
on success, with string set appropriately. false
on failure, with a message logged. Failures can occur, for example, when a NUL
terminator is not found within size bytes, or when encountering unmapped or unreadable pages.
+ Crashpad
+
+ |
+
This is the complete list of members for crashpad::ScopedMmap, including all inherited members.
+addr() const | crashpad::ScopedMmap | inline |
addr_as() const | crashpad::ScopedMmap | inline |
is_valid() const | crashpad::ScopedMmap | inline |
len() const | crashpad::ScopedMmap | inline |
Mprotect(int prot) | crashpad::ScopedMmap | |
Reset() | crashpad::ScopedMmap | |
ResetAddrLen(void *addr, size_t len) | crashpad::ScopedMmap | |
ResetMmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) | crashpad::ScopedMmap | |
ScopedMmap() (defined in crashpad::ScopedMmap) | crashpad::ScopedMmap | |
~ScopedMmap() (defined in crashpad::ScopedMmap) | crashpad::ScopedMmap |
+ Crashpad
+
+ |
+
Maintains a memory-mapped region created by mmap()
.
+ More...
#include "util/posix/scoped_mmap.h"
+Public Member Functions | |
bool | Reset () |
Releases the memory-mapped region by calling munmap() . More... | |
bool | ResetAddrLen (void *addr, size_t len) |
Releases any existing memory-mapped region and sets the object to maintain an already-established mapping. More... | |
bool | ResetMmap (void *addr, size_t len, int prot, int flags, int fd, off_t offset) |
Releases any existing memory-mapped region and establishes a new one by calling mmap() . More... | |
bool | Mprotect (int prot) |
Sets the protection of the memory-mapped region by calling mprotect() . More... | |
bool | is_valid () const |
+void * | addr () const |
Returns the base address of the memory-mapped region. | |
+template<typename T > | |
T | addr_as () const |
Returns the base address of the memory-mapped region, casted to a type of the caller’s choosing. | |
+size_t | len () const |
Returns the size of the memory-mapped region. | |
Maintains a memory-mapped region created by mmap()
.
On destruction, any memory-mapped region managed by an object of this class will be released by calling munmap()
.
+
|
+ +inline | +
bool crashpad::ScopedMmap::Mprotect | +( | +int | +prot | ) | ++ |
Sets the protection of the memory-mapped region by calling mprotect()
.
prot is passed directly to mprotect()
.
true
on success. false
on failure, with a message logged. bool crashpad::ScopedMmap::Reset | +( | +) | ++ |
Releases the memory-mapped region by calling munmap()
.
true
on success. false
on failure, with a message logged. bool crashpad::ScopedMmap::ResetAddrLen | +( | +void * | +addr, | +
+ | + | size_t | +len | +
+ | ) | ++ |
Releases any existing memory-mapped region and sets the object to maintain an already-established mapping.
+If addr and len indicate a region that overlaps with the existing memory-mapped region, only the portion of the existing memory-mapped region that does not overlap the new region, if any, will be released.
+[in] | addr | The base address of the existing memory-mapped region to maintain. |
[in] | len | The size of the existing memory-mapped region to maintain. |
true
on success. false
on failure, with a message logged. bool crashpad::ScopedMmap::ResetMmap | +( | +void * | +addr, | +
+ | + | size_t | +len, | +
+ | + | int | +prot, | +
+ | + | int | +flags, | +
+ | + | int | +fd, | +
+ | + | off_t | +offset | +
+ | ) | ++ |
Releases any existing memory-mapped region and establishes a new one by calling mmap()
.
The parameters to this method are passed directly to mmap()
.
true
on success. false
on failure, with a message logged. A message will also be logged on failure to release any existing memory-mapped region, but this will not preclude mmap()
from being called or a new mapping from being established, and if such a call to mmap()
is successful, this method will return true
.
+ Crashpad
+
+ |
+
This is the complete list of members for crashpad::ScopedPtraceAttach, including all inherited members.
+Reset() | crashpad::ScopedPtraceAttach | |
ResetAttach(pid_t pid) | crashpad::ScopedPtraceAttach | |
ScopedPtraceAttach() (defined in crashpad::ScopedPtraceAttach) | crashpad::ScopedPtraceAttach | |
~ScopedPtraceAttach() (defined in crashpad::ScopedPtraceAttach) | crashpad::ScopedPtraceAttach |
+ Crashpad
+
+ |
+
Maintains a ptrace()
attachment to a process.
+ More...
#include "util/linux/scoped_ptrace_attach.h"
+Public Member Functions | |
bool | Reset () |
Detaches from the process by calling ptrace() . More... | |
bool | ResetAttach (pid_t pid) |
Detaches from any previously attached process, attaches to the process with process ID pid, and blocks until the target process has stopped by calling waitpid() . More... | |
Maintains a ptrace()
attachment to a process.
On destruction, the process will be detached.
+bool crashpad::ScopedPtraceAttach::Reset | +( | +) | ++ |
Detaches from the process by calling ptrace()
.
true
on success. false
on failure, with a message logged. bool crashpad::ScopedPtraceAttach::ResetAttach | +( | +pid_t | +pid | ) | ++ |
Detaches from any previously attached process, attaches to the process with process ID pid, and blocks until the target process has stopped by calling waitpid()
.
true
on success. false
on failure, with a message logged.
+ Crashpad
+
+ |
+
This is the complete list of members for crashpad::UserStreamDataSource, including all inherited members.
+ProduceStreamData(ProcessSnapshot *process_snapshot)=0 | crashpad::UserStreamDataSource | pure virtual |
~UserStreamDataSource() (defined in crashpad::UserStreamDataSource) | crashpad::UserStreamDataSource | inlinevirtual |
+ Crashpad
+
+ |
+
Extensibility interface for embedders who wish to add custom streams to minidumps. + More...
+ +#include "handler/user_stream_data_source.h"
+Public Member Functions | |
virtual std::unique_ptr< MinidumpUserExtensionStreamDataSource > | ProduceStreamData (ProcessSnapshot *process_snapshot)=0 |
Produce the contents for an extension stream for a crashed program. More... | |
Extensibility interface for embedders who wish to add custom streams to minidumps.
+
+
|
+ +pure virtual | +
Produce the contents for an extension stream for a crashed program.
+Called after process_snapshot has been initialized for the crashed process to (optionally) produce the contents of a user extension stream that will be attached to the minidump.
+[in] | process_snapshot | An initialized snapshot for the crashed process. |
nullptr
on failure or to opt out of adding a stream.
+ Crashpad
+
+ |
+
This is the complete list of members for crashpad::test::BufferExtensionStreamDataSource, including all inherited members.
+BufferExtensionStreamDataSource(uint32_t stream_type, const void *data, size_t data_size) | crashpad::test::BufferExtensionStreamDataSource | |
MinidumpUserExtensionStreamDataSource(uint32_t stream_type) | crashpad::MinidumpUserExtensionStreamDataSource | explicit |
ReadStreamData(Delegate *delegate) override | crashpad::test::BufferExtensionStreamDataSource | virtual |
stream_type() const (defined in crashpad::MinidumpUserExtensionStreamDataSource) | crashpad::MinidumpUserExtensionStreamDataSource | inline |
StreamDataSize() override | crashpad::test::BufferExtensionStreamDataSource | virtual |
~MinidumpUserExtensionStreamDataSource() (defined in crashpad::MinidumpUserExtensionStreamDataSource) | crashpad::MinidumpUserExtensionStreamDataSource | virtual |
+ Crashpad
+
+ |
+
A user extension data source that wraps a buffer. + More...
+ +#include "minidump/test/minidump_user_extension_stream_util.h"
+Public Member Functions | |
BufferExtensionStreamDataSource (uint32_t stream_type, const void *data, size_t data_size) | |
Creates a data source with stream_type. More... | |
+size_t | StreamDataSize () override |
The size of this data stream. | |
bool | ReadStreamData (Delegate *delegate) override |
Calls Delegate::UserStreamDataSourceRead(), providing it with the stream data. More... | |
![]() | |
MinidumpUserExtensionStreamDataSource (uint32_t stream_type) | |
Constructs a MinidumpUserExtensionStreamDataSource. More... | |
+MinidumpStreamType | stream_type () const |
A user extension data source that wraps a buffer.
+crashpad::test::BufferExtensionStreamDataSource::BufferExtensionStreamDataSource | +( | +uint32_t | +stream_type, | +
+ | + | const void * | +data, | +
+ | + | size_t | +data_size | +
+ | ) | ++ |
Creates a data source with stream_type.
+param[in] stream_type The type of the stream. param[in] data The data of the stream. param[in] data_size The length of data.
+ +
+
|
+ +overridevirtual | +
Calls Delegate::UserStreamDataSourceRead(), providing it with the stream data.
+Implementations do not necessarily compute the stream data prior to this method being called. The stream data may be computed or loaded lazily and may be discarded after being passed to the delegate.
+false
on failure, otherwise, the return value of Delegate::ExtensionStreamDataSourceRead(), which should be true
on success and false
on failure. Implements crashpad::MinidumpUserExtensionStreamDataSource.
+ +This is the complete list of members for crashpad::test::Paths, including all inherited members.
+This is the complete list of members for crashpad::test::TestPaths, including all inherited members.
DISALLOW_IMPLICIT_CONSTRUCTORS(Paths) (defined in crashpad::test::Paths) | crashpad::test::Paths | |
Executable() | crashpad::test::Paths | static |
TestDataRoot() | crashpad::test::Paths | static |
DISALLOW_IMPLICIT_CONSTRUCTORS(TestPaths) (defined in crashpad::test::TestPaths) | crashpad::test::TestPaths | |
Executable() | crashpad::test::TestPaths | static |
TestDataRoot() | crashpad::test::TestPaths | static |
Functions to obtain paths from within tests. - More...
+ More... -#include "test/paths.h"
#include "test/test_paths.h"
Public Member Functions | |
- | DISALLOW_IMPLICIT_CONSTRUCTORS (Paths) |
+ | DISALLOW_IMPLICIT_CONSTRUCTORS (TestPaths) |
Static Public Member Functions | |
-static base::FilePath | Executable () |
Returns the pathname of the currently-running test executable. | |
static base::FilePath | TestDataRoot () |
Returns the pathname of the test data root. More... | |
static base::FilePath | Executable () |
Returns the pathname of the currently-running test executable. More... | |
static base::FilePath | TestDataRoot () |
Returns the pathname of the test data root. More... | |
Functions to obtain paths from within tests.
Returns the pathname of the currently-running test executable.
+On failure, aborts execution.
+ +
+
+
+
Maintains a directory opened by On destruction, the directory will be closed by calling Function Documentation+ +◆ AddUserExtensionStreams()+ +
+
+
+
+
+Adds user extension streams to a minidump. +Dispatches to each source in user_stream_data_sources and adds returned extension streams to minidump_file_writer. +
◆ AppendCommandLineArgument()@@ -3175,8 +3269,8 @@ template<typename Destination , typename Source > - -◆ HandlerMain()+ +◆ HandlerMain()
@@ -3191,7 +3285,13 @@ template<typename Destination , typename Source >
|
| char * |
- argv[] |
+ argv[], |
+
+
+ |
+ | const UserStreamDataSources * |
+ user_stream_sources |
@@ -3202,7 +3302,15 @@ template<typename Destination , typename Source >
| The This is exposed so that This is exposed so that
class | ReadExactlyInternal | | The internal implementation of ReadFileExactly() and its wrappers. More... | | struct | ScopedDIRCloser | | struct | ScopedFileHANDLECloseTraits | | struct | ScopedKernelHANDLECloseTraits |
diff --git a/doc/generated/doxygen/structcrashpad_1_1CrashpadInfo.html b/doc/generated/doxygen/structcrashpad_1_1CrashpadInfo.html index 86e8fbf9..db967daa 100644 --- a/doc/generated/doxygen/structcrashpad_1_1CrashpadInfo.html +++ b/doc/generated/doxygen/structcrashpad_1_1CrashpadInfo.html @@ -88,9 +88,11 @@ Public Member Functions void | set_extra_memory_ranges (SimpleAddressRangeBag *address_range_bag) | | Sets the bag of extra memory ranges to be included in the snapshot. More... | | void | set_simple_annotations (SimpleStringDictionary *simple_annotations) | void | set_simple_annotations (SimpleStringDictionary *simple_annotations) | | Sets the simple annotations dictionary. More... | | SimpleStringDictionary * | simple_annotations () const | | void | set_crashpad_handler_behavior (TriState crashpad_handler_behavior) | | Enables or disables Crashpad handler processing. More... | | Annotations may exist in simple_annotations at the time that this method is called, or they may be added, removed, or modified in simple_annotations after this method is called.
Enables or disables Crashpad forwarding of exceptions to the system’s crash reporter. When handling an exception, the Crashpad handler will scan all modules in a process. The first one that has a CrashpadInfo structure populated with a value other than kUnset for this field will dictate whether the exception is forwarded to the system’s crash reporter. If all modules with a CrashpadInfo structure specify kUnset, forwarding will be enabled. Unless disabled, forwarding may still occur if the Crashpad handler is disabled by SetCrashpadHandlerState(). Even when forwarding is enabled, the Crashpad handler may choose not to forward all exceptions to the system’s crash reporter in cases where it has reason to believe that the system’s crash reporter would not normally have handled the exception in Crashpad’s absence. + + + +◆ simple_annotations()+ +
+
+
+
The documentation for this struct was generated from the following files:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+crashpad::internal::ScopedDIRCloser Member List
+
+
+
+This is the complete list of members for crashpad::internal::ScopedDIRCloser, including all inherited members. +
![]()
-
+crashpad::MinidumpUserStreamWriter::BufferContentsWriter Class Referencefinal crashpad::internal::ScopedDIRCloser Struct Reference
-
-Inheritance diagram for crashpad::MinidumpUserStreamWriter::BufferContentsWriter:
-
-
- ![]()
The documentation for this class was generated from the following file:
The documentation for this struct was generated from the following files:
|