mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
SymbolDB: Blank stripped symbol name fixed
This commit is contained in:
parent
9b79e0ac72
commit
93b5a5369b
9 changed files with 29 additions and 24 deletions
|
@ -11,6 +11,21 @@
|
|||
#include "Common/Logging/Log.h"
|
||||
#include "Common/SymbolDB.h"
|
||||
|
||||
static std::string GetStrippedFunctionName(const std::string& symbol_name)
|
||||
{
|
||||
std::string name = symbol_name.substr(0, symbol_name.find('('));
|
||||
size_t position = name.find(' ');
|
||||
if (position != std::string::npos)
|
||||
name.erase(position);
|
||||
return name;
|
||||
}
|
||||
|
||||
void Symbol::Rename(const std::string& symbol_name)
|
||||
{
|
||||
this->name = symbol_name;
|
||||
this->function_name = GetStrippedFunctionName(symbol_name);
|
||||
}
|
||||
|
||||
void SymbolDB::List()
|
||||
{
|
||||
for (const auto& func : functions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue