Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix Issue 18068 - No file names and line numbers in stack trace - Again
Browse files Browse the repository at this point in the history
  • Loading branch information
JinShil authored and wilzbach committed Aug 20, 2018
1 parent be13242 commit 4ffb551
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/rt/backtrace/elf.d
Expand Up @@ -100,16 +100,8 @@ struct Image
return 0;

obj.set = true;
// search for the executable code segment
foreach (const ref phdr; info.dlpi_phdr[0 .. info.dlpi_phnum])
{
if (phdr.p_type == PT_LOAD && phdr.p_flags & PF_X)
{
obj.begin = info.dlpi_addr + phdr.p_vaddr;
return 0;
}
}
// fall back to the base address of the object file

// use the base address of the object file
obj.begin = info.dlpi_addr;
return 0;
}
Expand Down

0 comments on commit 4ffb551

Please sign in to comment.