| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_build_fingerprint(), |
| 584 minidump_descriptor_.microdump_product_info()); | 584 minidump_descriptor_.microdump_product_info(), |
| 585 minidump_descriptor_.microdump_gpu_fingerprint()); |
| 585 } | 586 } |
| 586 if (minidump_descriptor_.IsFD()) { | 587 if (minidump_descriptor_.IsFD()) { |
| 587 return google_breakpad::WriteMinidump(minidump_descriptor_.fd(), | 588 return google_breakpad::WriteMinidump(minidump_descriptor_.fd(), |
| 588 minidump_descriptor_.size_limit(), | 589 minidump_descriptor_.size_limit(), |
| 589 crashing_process, | 590 crashing_process, |
| 590 context, | 591 context, |
| 591 context_size, | 592 context_size, |
| 592 mapping_list_, | 593 mapping_list_, |
| 593 app_memory_list_); | 594 app_memory_list_); |
| 594 } | 595 } |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 descriptor.UpdatePath(); | 746 descriptor.UpdatePath(); |
| 746 if (!google_breakpad::WriteMinidump(descriptor.path(), | 747 if (!google_breakpad::WriteMinidump(descriptor.path(), |
| 747 child, | 748 child, |
| 748 child_blamed_thread)) | 749 child_blamed_thread)) |
| 749 return false; | 750 return false; |
| 750 | 751 |
| 751 return callback ? callback(descriptor, callback_context, true) : true; | 752 return callback ? callback(descriptor, callback_context, true) : true; |
| 752 } | 753 } |
| 753 | 754 |
| 754 } // namespace google_breakpad | 755 } // namespace google_breakpad |
| OLD | NEW |