Skip to content

Commit

Permalink
Update src/sys/boutexception.cxx
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Hill <[email protected]>
  • Loading branch information
dschwoerer and ZedThree authored Jun 1, 2020
1 parent 807835c commit 4ffb140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/boutexception.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ std::string BoutException::getBacktrace() const {
if (dladdr(trace[i],&info)){
// Additionally, check whether this is the default offset for an executable
if (info.dli_fbase != reinterpret_cast<void*>(0x400000))
ptr=reinterpret_cast<void*>(reinterpret_cast<size_t>(trace[i])-reinterpret_cast<size_t>(info.dli_fbase)));
ptr=reinterpret_cast<void*>(reinterpret_cast<size_t>(trace[i])-reinterpret_cast<size_t>(info.dli_fbase));
}

// Pipe stderr to /dev/null to avoid cluttering output
Expand Down

0 comments on commit 4ffb140

Please sign in to comment.