Skip to content

Add demangle support using external rustfilt tool#12

Closed
chrysn wants to merge 1 commit intohaukepetersen:masterfrom
chrysn-pull-requests:demangle
Closed

Add demangle support using external rustfilt tool#12
chrysn wants to merge 1 commit intohaukepetersen:masterfrom
chrysn-pull-requests:demangle

Conversation

@chrysn
Copy link
Copy Markdown
Contributor

@chrysn chrysn commented Dec 31, 2021

When the tool is not installed, it doesn't do anything but print a warning -- but if it is installed, it turns barely readable _ZN1foo2bar56baz names to foo:bar::baz.

@chrysn chrysn changed the title Add demangle support using external rustfix tool Add demangle support using external rustfilt tool Jan 1, 2022
@chrysn
Copy link
Copy Markdown
Contributor Author

chrysn commented Jan 1, 2022

By the way, this should also demangle C++ names (as Rust, until certain flags are set, uses the traditional _ZN mangling and not the newer v0 mangling). Didn't try, though; if it's used that way it may make sense to make the warning more visible (but I'd still keep it as an optional dependency, if only because it's easy to do).

@chrysn
Copy link
Copy Markdown
Contributor Author

chrysn commented Mar 13, 2024

Still works when applied to the cosy version currently in use with RIOT.

@chrysn
Copy link
Copy Markdown
Contributor Author

chrysn commented Dec 6, 2024

Closing this in favor of RIOT-OS#2

@chrysn chrysn closed this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant