Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map: Prevents symbols from being stripped #4160

Merged
merged 1 commit into from Sep 19, 2016

Conversation

sepalani
Copy link
Contributor

@sepalani sepalani commented Aug 30, 2016

Symbol maps can contain C++ mangled symbols. Demangling them with c++filt works, but Dolphin strips the whole function prototype and only keeps the name. Overloaded function can't be differentiated when demangled as well. This also prevents to manually complete function prototypes.

Is there any good reason to strip symbol's name?

EDIT: Zelda TP symbol map uses (not mangled) C++ symbols and valuable prototype informations are in there.


This change is Reviewable

@phire
Copy link
Member

phire commented Aug 31, 2016

As far as I know, there is no good reason to strip symbol names.

@lioncash lioncash merged commit 9e1cfbe into dolphin-emu:master Sep 19, 2016
@sepalani sepalani deleted the symbolmap branch September 19, 2016 11:13
leoetlino added a commit to leoetlino/dolphin that referenced this pull request Sep 26, 2016
This changes GetSymbolFromName to only require an exact match when the
passed name is "complete" (i.e. it contains more than just the function
name).

When the passed name only contains a function name, it is assumed that
we only want to check if the function name contains the passed name.

This fixes a regression introduced by dolphin-emu#4160, which prevented
HLE::PatchFunctions() from working properly.
leoetlino added a commit to leoetlino/dolphin that referenced this pull request Sep 26, 2016
This changes GetSymbolFromName to not require the passed name to
completely match with the symbol name. Instead, we now match
against the stripped symbol name (i.e. only the function name).

This fixes a regression introduced by dolphin-emu#4160, which prevented
HLE::PatchFunctions() from working properly.
leoetlino added a commit to leoetlino/dolphin that referenced this pull request Sep 26, 2016
This changes GetSymbolFromName to not require the passed name to
completely match with the symbol name. Instead, we now match
against the stripped symbol name (i.e. only the function name).

This fixes a regression introduced by dolphin-emu#4160, which prevented
HLE::PatchFunctions() from working properly.
leoetlino added a commit to leoetlino/dolphin that referenced this pull request Sep 26, 2016
This changes GetSymbolFromName to not require the passed name to
completely match with the symbol name. Instead, we now match
against the stripped symbol name (i.e. only the function name).

This fixes a regression introduced by dolphin-emu#4160, which prevented
HLE::PatchFunctions() from working properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants