mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Remove obsolete functions
This commit is contained in:
parent
00a801f6a3
commit
3d4bb3f20b
6 changed files with 1 additions and 48 deletions
|
@ -41,7 +41,6 @@ public:
|
|||
virtual void runToBreakpoint() {}
|
||||
virtual int getColor(unsigned int address){return 0xFFFFFFFF;}
|
||||
virtual const char *getDescription(unsigned int address) {return "";}
|
||||
virtual bool getSymbolValue(char* symbol, u32& dest) { return false; };
|
||||
virtual bool initExpression(const char* exp, PostfixExpression& dest) { return false; };
|
||||
virtual bool parseExpression(PostfixExpression& exp, u32& dest) { return false; };
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ void DisassemblyFunction::recheck()
|
|||
|
||||
int DisassemblyFunction::getNumLines()
|
||||
{
|
||||
return lineAddresses.size();
|
||||
return (int) lineAddresses.size();
|
||||
}
|
||||
|
||||
int DisassemblyFunction::getLineNum(u32 address, bool findStart)
|
||||
|
|
|
@ -338,44 +338,6 @@ u32 SymbolMap::GetNextSymbolAddress(u32 address)
|
|||
return containingEntry->second;
|
||||
}
|
||||
|
||||
const char* SymbolMap::getDirectSymbol(u32 address)
|
||||
{
|
||||
lock_guard guard(lock_);
|
||||
SymbolInfo info;
|
||||
if (GetSymbolInfo(&info,address) == false) return NULL;
|
||||
if (info.address != address) return NULL; // has to be the START of the function
|
||||
|
||||
// now we need the name... which we can't just get from GetSymbolInfo because of the
|
||||
// unique entries. But, there are so many less instances where there actually IS a
|
||||
// label that the speed up is still massive
|
||||
for (auto it = entries.begin(), end = entries.end(); it != end; ++it)
|
||||
{
|
||||
const MapEntry &entry = *it;
|
||||
unsigned int addr = entry.vaddress;
|
||||
if (addr == address) return entry.name;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool SymbolMap::getSymbolValue(char* symbol, u32& dest)
|
||||
{
|
||||
lock_guard guard(lock_);
|
||||
for (auto it = entries.begin(), end = entries.end(); it != end; ++it)
|
||||
{
|
||||
const MapEntry &entry = *it;
|
||||
#ifdef _WIN32
|
||||
if (_stricmp(entry.name,symbol) == 0)
|
||||
#else
|
||||
if (strcasecmp(entry.name,symbol) == 0)
|
||||
#endif
|
||||
{
|
||||
dest = entry.vaddress;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const char* SymbolMap::AddLabel(const char* name, u32 address)
|
||||
{
|
||||
// keep a label if it already exists
|
||||
|
|
|
@ -69,8 +69,6 @@ public:
|
|||
void IncreaseRunCount(int num);
|
||||
unsigned int GetRunCount(int num) const;
|
||||
void SortSymbols();
|
||||
const char* getDirectSymbol(u32 address);
|
||||
bool getSymbolValue(char* symbol, u32& dest);
|
||||
|
||||
void UseFuncSignaturesFile(const char *filename, u32 maxAddress);
|
||||
void CompileFuncSignaturesFile(const char *filename) const;
|
||||
|
|
|
@ -230,11 +230,6 @@ const char *MIPSDebugInterface::getDescription(unsigned int address)
|
|||
return symbolMap.GetDescription(address);
|
||||
}
|
||||
|
||||
bool MIPSDebugInterface::getSymbolValue(char* symbol, u32& dest)
|
||||
{
|
||||
return symbolMap.getSymbolValue(symbol,dest);
|
||||
}
|
||||
|
||||
bool MIPSDebugInterface::initExpression(const char* exp, PostfixExpression& dest)
|
||||
{
|
||||
MipsExpressionFunctions funcs(this);
|
||||
|
|
|
@ -40,7 +40,6 @@ public:
|
|||
virtual void runToBreakpoint();
|
||||
virtual int getColor(unsigned int address);
|
||||
virtual const char *getDescription(unsigned int address);
|
||||
virtual bool getSymbolValue(char* symbol, u32& dest);
|
||||
virtual bool initExpression(const char* exp, PostfixExpression& dest);
|
||||
virtual bool parseExpression(PostfixExpression& exp, u32& dest);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue