mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
Debugger: Exclude end address when scanning for functions
This commit is contained in:
parent
03aaf7db6a
commit
eccec21ada
@ -186,9 +186,7 @@ namespace MIPSAnalyst
|
|||||||
bool suspectedNoReturn = false;
|
bool suspectedNoReturn = false;
|
||||||
|
|
||||||
u32 addr;
|
u32 addr;
|
||||||
for (u64 i = startAddr; i <= endAddr; i += 4) {
|
for (addr = startAddr; addr < endAddr; addr += 4) {
|
||||||
addr = static_cast<u32>(i);
|
|
||||||
|
|
||||||
// Use pre-existing symbol map info if available. May be more reliable.
|
// Use pre-existing symbol map info if available. May be more reliable.
|
||||||
ccc::FunctionHandle existing_symbol_handle = database.functions.first_handle_from_starting_address(addr);
|
ccc::FunctionHandle existing_symbol_handle = database.functions.first_handle_from_starting_address(addr);
|
||||||
const ccc::Function* existing_symbol = database.functions.symbol_from_handle(existing_symbol_handle);
|
const ccc::Function* existing_symbol = database.functions.symbol_from_handle(existing_symbol_handle);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user