I've done some more testing with different versions of gdb compiled from source for target AVR to see which versions work with Martin's latest patches:
- gdb 6.6 - Doesn't work because async mode is not supported
- gdb 7.0.1 -
Works Sometimes work, see note below. - gdb 8.0 - Doesn't work as is, but works with patch.
So to ensure that debugging remote target AVR in Lazarus works one needs to apply the patch to gdb versions 7.1 to 8.0 else the disassemble command doesn't parse the correct code space addresses.
Edit note: After I upgraded Linux Mint and retested gdb 7.0.1 I noticed the following warning while testing a debug session:
warning:
(Internal error: pc 0xa2
in read
in psymtab, but
not in symtab.
)
GDB would sometimes not work properly and debugging from Lazarus using this version of gdb could hang the IDE.