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
This commit is contained in:
parent
72542b052d
commit
2f56276fbf
10 changed files with 305 additions and 29 deletions
src/client/linux/handler
|
@ -465,7 +465,8 @@ bool ExceptionHandler::DoDump(pid_t crashing_process, const void* context,
|
|||
crashing_process,
|
||||
context,
|
||||
context_size,
|
||||
mapping_list_);
|
||||
mapping_list_,
|
||||
app_memory_list_);
|
||||
}
|
||||
|
||||
// static
|
||||
|
@ -515,4 +516,19 @@ void ExceptionHandler::AddMappingInfo(const string& name,
|
|||
mapping_list_.push_back(mapping);
|
||||
}
|
||||
|
||||
void ExceptionHandler::RegisterAppMemory(void *ptr, size_t length) {
|
||||
app_memory_list_.push_back(AppMemory(ptr, length));
|
||||
}
|
||||
|
||||
void ExceptionHandler::UnregisterAppMemory(void *ptr) {
|
||||
for (AppMemoryList::iterator iter = app_memory_list_.begin();
|
||||
iter != app_memory_list_.end();
|
||||
++iter) {
|
||||
if (iter->ptr == ptr) {
|
||||
app_memory_list_.erase(iter);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace google_breakpad
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue