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

Side by Side Diff: src/google_breakpad/processor/minidump.h

Issue 1976683004: Revert "Write adjusted range back to module" (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | 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) 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 } 375 }
376 static uint32_t max_cv_bytes() { return max_cv_bytes_; } 376 static uint32_t max_cv_bytes() { return max_cv_bytes_; }
377 377
378 static void set_max_misc_bytes(uint32_t max_misc_bytes) { 378 static void set_max_misc_bytes(uint32_t max_misc_bytes) {
379 max_misc_bytes_ = max_misc_bytes; 379 max_misc_bytes_ = max_misc_bytes;
380 } 380 }
381 static uint32_t max_misc_bytes() { return max_misc_bytes_; } 381 static uint32_t max_misc_bytes() { return max_misc_bytes_; }
382 382
383 const MDRawModule* module() const { return valid_ ? &module_ : NULL; } 383 const MDRawModule* module() const { return valid_ ? &module_ : NULL; }
384 384
385 // This method is intented to handle the case on Android where the module
386 // could overlap with ashmem, and is not supposed to be used in anywhere
387 // else.
388 void set_base_address_and_size(uint64_t base_address, uint64_t size);
389
390 // CodeModule implementation 385 // CodeModule implementation
391 virtual uint64_t base_address() const { 386 virtual uint64_t base_address() const {
392 return valid_ ? module_.base_of_image : static_cast<uint64_t>(-1); 387 return valid_ ? module_.base_of_image : static_cast<uint64_t>(-1);
393 } 388 }
394 virtual uint64_t size() const { return valid_ ? module_.size_of_image : 0; } 389 virtual uint64_t size() const { return valid_ ? module_.size_of_image : 0; }
395 virtual string code_file() const; 390 virtual string code_file() const;
396 virtual string code_identifier() const; 391 virtual string code_identifier() const;
397 virtual string debug_file() const; 392 virtual string debug_file() const;
398 virtual string debug_identifier() const; 393 virtual string debug_identifier() const;
399 virtual string version() const; 394 virtual string version() const;
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 // construction or after a failed Read(); true following a successful 1121 // construction or after a failed Read(); true following a successful
1127 // Read(). 1122 // Read().
1128 bool valid_; 1123 bool valid_;
1129 }; 1124 };
1130 1125
1131 1126
1132 } // namespace google_breakpad 1127 } // namespace google_breakpad
1133 1128
1134 1129
1135 #endif // GOOGLE_BREAKPAD_PROCESSOR_MINIDUMP_H__ 1130 #endif // GOOGLE_BREAKPAD_PROCESSOR_MINIDUMP_H__
OLDNEW
« no previous file with comments | « no previous file | src/processor/minidump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698