Skip to content

Commit 3c679f5

Browse files
Fix image slide
1 parent bd9cda3 commit 3c679f5

File tree

1 file changed

+3
-1
lines changed
  • runtime/druntime/src/core/internal/backtrace

1 file changed

+3
-1
lines changed

runtime/druntime/src/core/internal/backtrace/macho.d

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ struct Image {
5151
}
5252

5353
@property size_t baseAddress() {
54-
return cast(size_t)self.baseAddress;
54+
if (debugObj.slide == -1)
55+
return self.slide;
56+
return 0;
5557
}
5658
}

0 commit comments

Comments
 (0)