Lazarus debugger error when disassembling code at address 0 (AVR)
Original Reporter info from Mantis: ccrause @ccrause
-
Reporter name: Christo Crause
Original Reporter info from Mantis: ccrause @ccrause
- Reporter name: Christo Crause
Description:
When scrolling the disassembler view up to the start of flash memory for an AVR program, an error is raised. This appears to originate in TDBGDisassemblerEntryMap.AddRange, where a duplicate range gets added to the Map if the RangeStartAddr is 0.
The attached patch works around the issue by checking HasID to ensure a range with a duplicate starting address is not added.
I'm not sure this is a proper solution for the problem though.
Mantis conversion info:
- Mantis ID: 38443
- Version: 2.1 (SVN)
- Fixed in version: 2.2
- Fixed in revision: 64544 (#ac0e547a)
- Target version: 2.2