diff options
Diffstat (limited to 'plugins/dwarf/dwarf_import/src')
| -rw-r--r-- | plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs | 2 | ||||
| -rw-r--r-- | plugins/dwarf/dwarf_import/src/functions.rs | 2 | ||||
| -rw-r--r-- | plugins/dwarf/dwarf_import/src/lib.rs | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs index 136a7a8b..017ed4be 100644 --- a/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs +++ b/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs @@ -622,7 +622,7 @@ impl DebugInfoBuilder { .items .len() { - func.full_name = Some(symbol_full_name.to_string()); + func.full_name = Some(symbol_full_name.to_string_lossy().to_string()); } } } diff --git a/plugins/dwarf/dwarf_import/src/functions.rs b/plugins/dwarf/dwarf_import/src/functions.rs index 6400ea84..6277c6b5 100644 --- a/plugins/dwarf/dwarf_import/src/functions.rs +++ b/plugins/dwarf/dwarf_import/src/functions.rs @@ -117,7 +117,7 @@ pub(crate) fn parse_function_entry<R: ReaderType>( if let Ok(demangled) = sym.demangle(demangle_options) { let cleaned = abi_regex.replace_all(&demangled, ""); let simplified = simplify_str_to_str(&cleaned); - full_name = Some(simplified.to_string()); + full_name = Some(simplified.to_string_lossy().to_string()); } } } diff --git a/plugins/dwarf/dwarf_import/src/lib.rs b/plugins/dwarf/dwarf_import/src/lib.rs index d51b4e1d..1e3d02d5 100644 --- a/plugins/dwarf/dwarf_import/src/lib.rs +++ b/plugins/dwarf/dwarf_import/src/lib.rs @@ -234,6 +234,7 @@ fn recover_names_internal<R: ReaderType>( .collect::<Vec<String>>() .join("::"), ) + .to_string_lossy() .to_string(), ); } @@ -251,6 +252,7 @@ fn recover_names_internal<R: ReaderType>( .collect::<Vec<String>>() .join("::"), ) + .to_string_lossy() .to_string(), ); } |
