stardot / b-em

An opensource BBC Micro emulator for Win32 and Linux
http://stardot.org.uk/forums/viewtopic.php?f=4&t=10823
GNU General Public License v2.0
112 stars 56 forks source link

Accurate symbols #180

Open TobyLobster opened 1 year ago

TobyLobster commented 1 year ago

In debugger_symbols.cpp, function find_by_addr_near() should prefer finding a symbol with the exact address if it exists before looking at nearby values. Adding this to the start of the function fixes this:

    // prefer the exact address where possible
    if (find_by_addr(addr, ret)) {
        addr_found = addr;
        return true;
    }