Skip to content

Commit

Permalink
Merge pull request #365 from erick-pfeifer/main
Browse files Browse the repository at this point in the history
add_range: Replace THROW with WARN for early return
  • Loading branch information
haberman authored Nov 6, 2023
2 parents 8be8b44 + ce7e84f commit 16f9fe5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bloaty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,10 @@ void RangeSink::AddRange(const char* analyzer, string_view name,
if (translator_) {
if (!translator_->vm_map.CoversRange(vmaddr, vmsize) ||
!translator_->file_map.CoversRange(fileoff, filesize)) {
THROW("Tried to add range that is not covered by base map.");
WARN("AddRange($0, $1, $2, $3, $4) will be ignored, because it is not "
"covered by base map.",
name.data(), vmaddr, vmsize, fileoff, filesize);
return;
}
}

Expand Down

0 comments on commit 16f9fe5

Please sign in to comment.