mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Improve speed of stepping in debug mode.
Redraw was a killer. It's still not fast...
This commit is contained in:
parent
29504da03b
commit
10db012237
1 changed files with 5 additions and 14 deletions
|
@ -208,22 +208,13 @@ void SymbolMap::SaveSymbolMap(const char *filename)
|
|||
|
||||
int SymbolMap::GetSymbolNum(unsigned int address, SymbolType symmask)
|
||||
{
|
||||
size_t start=0;
|
||||
|
||||
for (size_t i = 0; i < entries.size(); i++)
|
||||
for (size_t i = 0, n = entries.size(); i < n; i++)
|
||||
{
|
||||
if (address >= entries[i].vaddress)
|
||||
start = i;
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < entries.size(); i++)
|
||||
{
|
||||
unsigned int addr = entries[i].vaddress;
|
||||
if ((address >= addr))
|
||||
MapEntry &entry = entries[i];
|
||||
unsigned int addr = entry.vaddress;
|
||||
if (address >= addr)
|
||||
{
|
||||
if (address < addr+entries[i].size)
|
||||
if (address < addr + entry.size)
|
||||
{
|
||||
if (entries[i].type & symmask)
|
||||
return (int) i;
|
||||
|
|
Loading…
Add table
Reference in a new issue