Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support omission of exception header #366

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/eh_frame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ namespace bloaty {

uint64_t ReadEncodedPointer(uint8_t encoding, bool is_64bit, string_view* data,
const char* data_base, RangeSink* sink) {
if (encoding == DW_EH_PE_omit) {
return 0;
}
uint64_t value;
const char* ptr = data->data();
uint8_t format = encoding & DW_EH_PE_FORMAT_MASK;

switch (format) {
case DW_EH_PE_omit:
return 0;
case DW_EH_PE_absptr:
if (is_64bit) {
value = ReadFixed<uint64_t>(data);
Expand Down