MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / modify

Method modify

ghidra_scripts/gimport/extract_info.py:148–157  ·  view source on GitHub ↗
(type: GType, modifiers: List[int])

Source from the content-addressed store, hash-verified

146
147 def parse_type_from_die(self, die: DIEV1) -> GType:
148 def modify(type: GType, modifiers: List[int]) -> GType:
149 for modifier in modifiers:
150 if modifier == DW_MOD.pointer_to or modifier == DW_MOD.reference_to:
151 type = GPointerType(type)
152 elif modifier == DW_MOD.const or modifier == DW_MOD.volatile:
153 # No impact on Ghidra use case
154 pass
155 else:
156 assert_never(f"Unknown modifier: {modifier}")
157 return type
158
159 if DW_AT.user_def_type in die.attributes:
160 offset = die.attributes[DW_AT.user_def_type].value

Callers

nothing calls this directly

Calls 1

GPointerTypeClass · 0.85

Tested by

no test coverage detected