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

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: 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
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(), 0 /* delta */, module->size(),
108 module_ptr)) {
108 BPLOG(ERROR) << "Module " << module->code_file() << 109 BPLOG(ERROR) << "Module " << module->code_file() <<
109 " could not be stored"; 110 " could not be stored";
110 } 111 }
111 } 112 }
112 113
113 114
114 // 115 //
115 // MicrodumpContext 116 // MicrodumpContext
116 // 117 //
117 118
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 filename, // debug_file 373 filename, // debug_file
373 identifier, // debug_identifier 374 identifier, // debug_identifier
374 "")); // version 375 "")); // version
375 } 376 }
376 } 377 }
377 stack_region_->Init(stack_start, stack_content); 378 stack_region_->Init(stack_start, stack_content);
378 } 379 }
379 380
380 } // namespace google_breakpad 381 } // namespace google_breakpad
381 382
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698