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

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

Issue 1939333002: Write adjusted range back to module (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad/src.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 | processor/minidump.cc » ('j') | processor/minidump.cc » ('J')
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 void adjust_base_address_and_size(uint64_t base_address, uint64_t size);
Mark Mentovai 2016/05/03 04:07:07 “Set” instead of “adjust”. “Adjust” makes it sound
michaelbai 2016/05/03 19:40:56 Done.
386
385 // CodeModule implementation 387 // CodeModule implementation
386 virtual uint64_t base_address() const { 388 virtual uint64_t base_address() const {
387 return valid_ ? module_.base_of_image : static_cast<uint64_t>(-1); 389 return valid_ ? module_.base_of_image : static_cast<uint64_t>(-1);
388 } 390 }
389 virtual uint64_t size() const { return valid_ ? module_.size_of_image : 0; } 391 virtual uint64_t size() const { return valid_ ? module_.size_of_image : 0; }
390 virtual string code_file() const; 392 virtual string code_file() const;
391 virtual string code_identifier() const; 393 virtual string code_identifier() const;
392 virtual string debug_file() const; 394 virtual string debug_file() const;
393 virtual string debug_identifier() const; 395 virtual string debug_identifier() const;
394 virtual string version() const; 396 virtual string version() const;
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 // construction or after a failed Read(); true following a successful 1123 // construction or after a failed Read(); true following a successful
1122 // Read(). 1124 // Read().
1123 bool valid_; 1125 bool valid_;
1124 }; 1126 };
1125 1127
1126 1128
1127 } // namespace google_breakpad 1129 } // namespace google_breakpad
1128 1130
1129 1131
1130 #endif // GOOGLE_BREAKPAD_PROCESSOR_MINIDUMP_H__ 1132 #endif // GOOGLE_BREAKPAD_PROCESSOR_MINIDUMP_H__
OLDNEW
« no previous file with comments | « no previous file | processor/minidump.cc » ('j') | processor/minidump.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698