Skip to content

Commit 75858b5

Browse files
committed
types: fragment types
1 parent 876ac63 commit 75858b5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

binaryninjacore.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,8 @@ extern "C"
832832
VarArgsTypeClass = 9,
833833
ValueTypeClass = 10,
834834
NamedTypeReferenceClass = 11,
835-
WideCharTypeClass = 12
835+
WideCharTypeClass = 12,
836+
FragmentTypeClass = 13,
836837
} BNTypeClass;
837838

838839
typedef enum BNNamedTypeReferenceClass

plugins/dwarf/dwarf_export/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ fn export_type(
391391
);
392392
Some(wide_char_die_uid)
393393
}
394+
TypeClass::FragmentTypeClass => {
395+
error!("Fragment types are not representable in DWARF");
396+
None
397+
}
394398
}
395399
}
396400

plugins/warp/src/convert/types.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ pub fn from_bn_type_internal(
244244
};
245245
TypeClass::Character(char_class)
246246
}
247+
BNTypeClass::FragmentTypeClass => {
248+
// XXX: possibly unrepresentable?
249+
TypeClass::Void
250+
}
247251
};
248252

249253
let name = raw_ty.registered_name().map(|n| n.name().to_string());

0 commit comments

Comments
 (0)