Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: src/processor/microdump.cc

Issue 2029953003: Adding support for overlapping ranges to RangeMap. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Last patch set after git pull. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/processor/basic_source_line_resolver.cc ('k') | src/processor/minidump.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/processor/basic_source_line_resolver.cc ('k') | src/processor/minidump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698