| ... | @@ -1886,10 +1886,13 @@ pub const ExceptionFrameHeader = struct { | ... | @@ -1886,10 +1886,13 @@ pub const ExceptionFrameHeader = struct { |
| 1886 | .data_rel_base = eh_frame_hdr_ptr, | 1886 | .data_rel_base = eh_frame_hdr_ptr, |
| 1887 | }, builtin.cpu.arch.endian()) orelse return badDwarf(); | 1887 | }, builtin.cpu.arch.endian()) orelse return badDwarf(); |
| 1888 | | 1888 | |
| 1889 | if (pc >= pc_begin) left = mid; | 1889 | if (pc < pc_begin) { |
| 1890 | if (pc == pc_begin) break; | 1890 | len /= 2; |
| 1891 | | 1891 | } else { |
| 1892 | len /= 2; | 1892 | left = mid; |
| | 1893 | if (pc == pc_begin) break; |
| | 1894 | len -= len / 2; |
| | 1895 | } |
| 1893 | } | 1896 | } |
| 1894 | | 1897 | |
| 1895 | try stream.seekTo(left * entry_size); | 1898 | try stream.seekTo(left * entry_size); |