| 282 | } |
| 283 | |
| 284 | u32 DisassemblyManager::getNthPreviousAddress(u32 address, int n) |
| 285 | { |
| 286 | while (cpu->isValidAddress(address)) |
| 287 | { |
| 288 | auto it = findDisassemblyEntry(entries,address,false); |
| 289 | |
| 290 | while (it != entries.end()) |
| 291 | { |
| 292 | DisassemblyEntry* entry = it->second; |
| 293 | int oldLineNum = entry->getLineNum(address,true); |
| 294 | if (n <= oldLineNum) |
| 295 | { |
| 296 | return entry->getLineAddress(oldLineNum-n); |
| 297 | } |
| 298 | |
| 299 | address = entry->getLineAddress(0)-1; |
| 300 | n -= oldLineNum+1; |
| 301 | it = findDisassemblyEntry(entries,address,false); |
| 302 | } |
| 303 | |
| 304 | analyze(address-127,128); |
| 305 | } |
| 306 | |
| 307 | return address-n*4; |
| 308 | } |
| 309 | |
| 310 | u32 DisassemblyManager::getNthNextAddress(u32 address, int n) |
| 311 | { |
nothing calls this directly
no test coverage detected