diff options
Diffstat (limited to 'src/common/dwarf_range_list_handler.cc')
-rw-r--r-- | src/common/dwarf_range_list_handler.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/common/dwarf_range_list_handler.cc b/src/common/dwarf_range_list_handler.cc index cc9e39ce..4d3dbd2e 100644 --- a/src/common/dwarf_range_list_handler.cc +++ b/src/common/dwarf_range_list_handler.cc @@ -1,5 +1,4 @@ -// Copyright (c) 2018 Google Inc. -// All rights reserved. +// Copyright 2018 Google LLC // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -11,7 +10,7 @@ // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. -// * Neither the name of Google Inc. nor the names of its +// * Neither the name of Google LLC nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // @@ -40,18 +39,14 @@ namespace google_breakpad { void DwarfRangeListHandler::AddRange(uint64_t begin, uint64_t end) { - Module::Range r(begin + base_address_, end - begin); + Module::Range r(begin, end - begin); ranges_->push_back(r); } -void DwarfRangeListHandler::SetBaseAddress(uint64_t base_address) { - base_address_ = base_address; -} - void DwarfRangeListHandler::Finish() { std::sort(ranges_->begin(), ranges_->end(), - [](const Module::Range &a, const Module::Range &b) { + [](const Module::Range& a, const Module::Range& b) { return a.address < b.address; } ); |