1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +00:00

LibDebug: Add AttributeForm field to Dwarf::AttributeValue

In some contexts, it's helpful to also know the "Attribute Form",
in addition to the "Attribute Type".

An example for such context is the interpretation of the
"DW_AT_high_pc" attribute, which has different meaning if the form
is an address or a constant.
This commit is contained in:
Itamar 2021-06-19 11:34:59 +03:00 committed by Andreas Kling
parent a45ce0c6eb
commit 84609aecc1
2 changed files with 5 additions and 0 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <AK/Types.h>
#include <LibDebug/Dwarf/DwarfTypes.h>
namespace Debug::Dwarf {
@ -34,6 +35,8 @@ struct AttributeValue {
const u8* bytes; // points to bytes in the memory mapped elf image
} as_raw_bytes;
} data {};
AttributeDataForm form {};
};
}