Demangle a C++ symbol using c++filt. Args: cppfilt_path (Path): Path to the c++filt executable. symbol (str): The symbol to demangle. Returns: str: The demangled symbol.
(cppfilt_path: Path, symbol: str)
| 124 | |
| 125 | |
| 126 | def demangle_symbol(cppfilt_path: Path, symbol: str) -> str: |
| 127 | """ |
| 128 | Demangle a C++ symbol using c++filt. |
| 129 | |
| 130 | Args: |
| 131 | cppfilt_path (Path): Path to the c++filt executable. |
| 132 | symbol (str): The symbol to demangle. |
| 133 | |
| 134 | Returns: |
| 135 | str: The demangled symbol. |
| 136 | """ |
| 137 | command = [str(cppfilt_path), symbol] |
| 138 | return run_command(command, show_output=False).strip() |
| 139 | |
| 140 | |
| 141 | def list_symbols_and_sizes(objdump_path: Path, cppfilt_path: Path, elf_file: Path): |
no test coverage detected