OLD | NEW |
1 // Copyright (c) 2014 Google Inc. | 1 // Copyright (c) 2014 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } // namespace | 97 } // namespace |
98 | 98 |
99 namespace google_breakpad { | 99 namespace google_breakpad { |
100 | 100 |
101 // | 101 // |
102 // MicrodumpModules | 102 // MicrodumpModules |
103 // | 103 // |
104 | 104 |
105 void MicrodumpModules::Add(const CodeModule* module) { | 105 void MicrodumpModules::Add(const CodeModule* module) { |
106 linked_ptr<const CodeModule> module_ptr(module); | 106 linked_ptr<const CodeModule> module_ptr(module); |
107 if (!map_->StoreRange(module->base_address(), module->size(), module_ptr)) { | 107 if (!map_.StoreRange(module->base_address(), module->size(), module_ptr)) { |
108 BPLOG(ERROR) << "Module " << module->code_file() << | 108 BPLOG(ERROR) << "Module " << module->code_file() << |
109 " could not be stored"; | 109 " could not be stored"; |
110 } | 110 } |
111 } | 111 } |
112 | 112 |
113 | 113 |
114 // | 114 // |
115 // MicrodumpContext | 115 // MicrodumpContext |
116 // | 116 // |
117 | 117 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 filename, // debug_file | 372 filename, // debug_file |
373 identifier, // debug_identifier | 373 identifier, // debug_identifier |
374 "")); // version | 374 "")); // version |
375 } | 375 } |
376 } | 376 } |
377 stack_region_->Init(stack_start, stack_content); | 377 stack_region_->Init(stack_start, stack_content); |
378 } | 378 } |
379 | 379 |
380 } // namespace google_breakpad | 380 } // namespace google_breakpad |
381 | 381 |
OLD | NEW |