From b1246d8bfc27368028c3f9f93d022e373118fcaa Mon Sep 17 00:00:00 2001 From: Ryan Snyder Date: Thu, 20 Nov 2025 21:40:23 -0500 Subject: types: fragment type API support (C++, Python) --- plugins/dwarf/dwarf_export/src/lib.rs | 4 ++++ plugins/warp/src/convert/types.rs | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'plugins') diff --git a/plugins/dwarf/dwarf_export/src/lib.rs b/plugins/dwarf/dwarf_export/src/lib.rs index 284ca34b..fac7b2bb 100644 --- a/plugins/dwarf/dwarf_export/src/lib.rs +++ b/plugins/dwarf/dwarf_export/src/lib.rs @@ -401,6 +401,10 @@ fn export_type( ); Some(wide_char_die_uid) } + TypeClass::FragmentTypeClass => { + tracing::error!("Fragment types are not representable in DWARF"); + None + } } } diff --git a/plugins/warp/src/convert/types.rs b/plugins/warp/src/convert/types.rs index 8421eb5e..abfa3bc9 100644 --- a/plugins/warp/src/convert/types.rs +++ b/plugins/warp/src/convert/types.rs @@ -244,6 +244,10 @@ pub fn from_bn_type_internal( }; TypeClass::Character(char_class) } + BNTypeClass::FragmentTypeClass => { + // XXX: possibly unrepresentable? + TypeClass::Void + } }; let name = raw_ty.registered_name().map(|n| n.name().to_string()); -- cgit v1.3.1