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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 int thread_count = process_state.threads()->size(); | 919 int thread_count = process_state.threads()->size(); |
920 for (int thread_index = 0; thread_index < thread_count; ++thread_index) { | 920 for (int thread_index = 0; thread_index < thread_count; ++thread_index) { |
921 if (thread_index != requesting_thread) { | 921 if (thread_index != requesting_thread) { |
922 // Don't print the crash thread again, it was already printed. | 922 // Don't print the crash thread again, it was already printed. |
923 PrintStackMachineReadable(thread_index, | 923 PrintStackMachineReadable(thread_index, |
924 process_state.threads()->at(thread_index)); | 924 process_state.threads()->at(thread_index)); |
925 } | 925 } |
926 } | 926 } |
927 } | 927 } |
928 | 928 |
| 929 void PrintProcessModules(const ProcessState& process_state) { |
| 930 const CodeModules* modules = process_state.modules(); |
| 931 const unsigned int module_count = modules->module_count(); |
| 932 for (unsigned int i = 0; i < module_count; ++i) { |
| 933 const CodeModule* module = modules->GetModuleAtSequence(i); |
| 934 printf("%s\n", module->code_file().c_str()); |
| 935 } |
| 936 } |
| 937 |
929 } // namespace google_breakpad | 938 } // namespace google_breakpad |
OLD | NEW |