diff options
author | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-07-19 22:03:39 +0000 |
---|---|---|
committer | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-07-19 22:03:39 +0000 |
commit | 2f56276fbfe519913845565f178cfa385da93657 (patch) | |
tree | f031e25d09fd0ec8bdb7fc8837979ae4f2bf1982 /src/client/linux/handler/exception_handler.h | |
parent | Add some more DWARF ARM register numbers to the DWARF CFI register maps (diff) | |
download | breakpad-2f56276fbfe519913845565f178cfa385da93657.tar.xz |
Allow adding extra memory regions to minidump on linux/windows
A=Bill McCloskey <wmccloskey@mozilla.com> R=ted at https://bugzilla.mozilla.org/show_bug.cgi?id=662646
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@989 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/linux/handler/exception_handler.h')
-rw-r--r-- | src/client/linux/handler/exception_handler.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/linux/handler/exception_handler.h b/src/client/linux/handler/exception_handler.h index 4bc8ba72..fab74d28 100644 --- a/src/client/linux/handler/exception_handler.h +++ b/src/client/linux/handler/exception_handler.h @@ -194,6 +194,13 @@ class ExceptionHandler { size_t mapping_size, size_t file_offset); + // Register a block of memory of len bytes starting at address p + // to be copied to the minidump when a crash happens. + void RegisterAppMemory(void *ptr, size_t length); + + // Unregister a block of memory that was registered with RegisterAppMemory. + void UnregisterAppMemory(void *ptr); + private: void Init(const string &dump_path, const int server_fd); @@ -252,6 +259,10 @@ class ExceptionHandler { // Callers can add extra info about mappings for cases where the // dumper code cannot extract enough information from /proc/<pid>/maps. MappingList mapping_list_; + + // Callers can request additional memory regions to be included in + // the dump. + AppMemoryList app_memory_list_; }; } // namespace google_breakpad |