forked from libbpf/blazesym
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change adds support for transparent demangling of symbols. Demangling is generally runtime configurable (via the previously added Builder flag), but because it involves additional dependencies there is also the option to disable it at compile time. If disabled at compile time, the runtime option becomes a no-op. Demangling currently happens in a single location inside the Symbolizer type. This has the advantage of concentrating the feature's implementation. However, it means that we need to bubble up the inferred language from all resolvers -- something that the recently added IntSym type helps us with. Note that this change only provides *de*mangling support. That is, it hooks into the APIs mapping addresses to human readable symbols. The inverse, mapping human readable and potentially *un*mangled symbols to their mangled counterparts and then to addresses is not currently being done (that would be a useful addition to the inspect module, but is out of the scope of this change). Closes: libbpf#50 Signed-off-by: Daniel Müller <deso@posteo.net>
- Loading branch information
Showing
5 changed files
with
109 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters