mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
Debugger: Fixed "find all occurrences" returning the same result multiple times
This commit is contained in:
parent
99acfc71b9
commit
a6ff48a1df
1 changed files with 5 additions and 1 deletions
|
@ -83,6 +83,7 @@ uint32_t DisassemblySearch::SearchDisassembly(CpuType cpuType, const char* searc
|
|||
if(maxResultCount == ++resultCount) {
|
||||
return resultCount;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if(TextContains(searchStr, lineData.Comment, 1000, options)) {
|
||||
|
@ -90,9 +91,10 @@ uint32_t DisassemblySearch::SearchDisassembly(CpuType cpuType, const char* searc
|
|||
if(maxResultCount == ++resultCount) {
|
||||
return resultCount;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if(lineData.EffectiveAddress.Address >= 0) {
|
||||
if(lineData.EffectiveAddress.ShowAddress && lineData.EffectiveAddress.Address >= 0) {
|
||||
txt = _labelManager->GetLabel({ lineData.EffectiveAddress.Address, memType });
|
||||
if(txt.empty()) {
|
||||
txt = "[$" + DebugUtilities::AddressToHex(lineData.LineCpuType, lineData.EffectiveAddress.Address) + "]";
|
||||
|
@ -105,6 +107,7 @@ uint32_t DisassemblySearch::SearchDisassembly(CpuType cpuType, const char* searc
|
|||
if(maxResultCount == ++resultCount) {
|
||||
return resultCount;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -115,6 +118,7 @@ uint32_t DisassemblySearch::SearchDisassembly(CpuType cpuType, const char* searc
|
|||
if(maxResultCount == ++resultCount) {
|
||||
return resultCount;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue