mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
dwarf: use eh_frame length if it's available
This commit is contained in:
parent
521988299d
commit
84a1244b6c
@ -1593,10 +1593,11 @@ pub const DwarfInfo = struct {
|
||||
var mapped_pc: usize = undefined;
|
||||
|
||||
if (di.eh_frame_hdr) |header| {
|
||||
const eh_frame_len = if (di.section(.eh_frame)) |eh_frame| eh_frame.len else null;
|
||||
mapped_pc = context.pc;
|
||||
try header.findEntry(
|
||||
context.isValidMemory,
|
||||
null, // TODO: Check di for this
|
||||
eh_frame_len,
|
||||
@intFromPtr(di.section(.eh_frame_hdr).?.ptr),
|
||||
mapped_pc,
|
||||
&cie,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user