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

Commit

Permalink
Add DwarfDebugMachine debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed May 7, 2018
1 parent 5142b4d commit e263004
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rt/backtrace/dwarf.d
Expand Up @@ -204,6 +204,7 @@ void resolveAddresses(const(ubyte)[] debugLineSectionData, Location[] locations,
{
// adjust to ASLR offset
address += baseAddress;
debug(DwarfDebugMachine) printf("-- offsetting 0x%x to 0x%x\n", address - baseAddress, address);
// If loc.line != -1, then it has been set previously.
// Some implementations (eg. dmd) write an address to
// the debug data multiple times, but so far I have found
Expand Down

0 comments on commit e263004

Please sign in to comment.