diff options
| author | Ryan Snyder <ryan@vector35.com> | 2025-11-20 21:40:23 -0500 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2026-04-13 12:52:07 -0400 |
| commit | b1246d8bfc27368028c3f9f93d022e373118fcaa (patch) | |
| tree | c3b9ac2ce7472c95f7e62ebfd77700416cbc632f /plugins | |
| parent | 745c0b3b806b7e44aba36cf3a8564dfa0631dc8f (diff) | |
types: fragment type API support (C++, Python)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/dwarf/dwarf_export/src/lib.rs | 4 | ||||
| -rw-r--r-- | plugins/warp/src/convert/types.rs | 4 |
2 files changed, 8 insertions, 0 deletions
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()); |
