OLD | NEW |
1 // Copyright (c) 2010 Google Inc. | 1 // Copyright (c) 2010 Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 // This function runs in a compromised context: see the top of the file. | 573 // This function runs in a compromised context: see the top of the file. |
574 // Runs on the cloned process. | 574 // Runs on the cloned process. |
575 bool ExceptionHandler::DoDump(pid_t crashing_process, const void* context, | 575 bool ExceptionHandler::DoDump(pid_t crashing_process, const void* context, |
576 size_t context_size) { | 576 size_t context_size) { |
577 if (minidump_descriptor_.IsMicrodumpOnConsole()) { | 577 if (minidump_descriptor_.IsMicrodumpOnConsole()) { |
578 return google_breakpad::WriteMicrodump( | 578 return google_breakpad::WriteMicrodump( |
579 crashing_process, | 579 crashing_process, |
580 context, | 580 context, |
581 context_size, | 581 context_size, |
582 mapping_list_, | 582 mapping_list_, |
583 minidump_descriptor_.microdump_build_fingerprint(), | 583 *minidump_descriptor_.microdump_extra_info()); |
584 minidump_descriptor_.microdump_product_info()); | |
585 } | 584 } |
586 if (minidump_descriptor_.IsFD()) { | 585 if (minidump_descriptor_.IsFD()) { |
587 return google_breakpad::WriteMinidump(minidump_descriptor_.fd(), | 586 return google_breakpad::WriteMinidump(minidump_descriptor_.fd(), |
588 minidump_descriptor_.size_limit(), | 587 minidump_descriptor_.size_limit(), |
589 crashing_process, | 588 crashing_process, |
590 context, | 589 context, |
591 context_size, | 590 context_size, |
592 mapping_list_, | 591 mapping_list_, |
593 app_memory_list_); | 592 app_memory_list_); |
594 } | 593 } |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 descriptor.UpdatePath(); | 744 descriptor.UpdatePath(); |
746 if (!google_breakpad::WriteMinidump(descriptor.path(), | 745 if (!google_breakpad::WriteMinidump(descriptor.path(), |
747 child, | 746 child, |
748 child_blamed_thread)) | 747 child_blamed_thread)) |
749 return false; | 748 return false; |
750 | 749 |
751 return callback ? callback(descriptor, callback_context, true) : true; | 750 return callback ? callback(descriptor, callback_context, true) : true; |
752 } | 751 } |
753 | 752 |
754 } // namespace google_breakpad | 753 } // namespace google_breakpad |
OLD | NEW |