* * *

Author Topic: Remote debugging - no assembler code displayed and no code execution pointer  (Read 2283 times)

ccrause

  • New member
  • *
  • Posts: 48
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:
Code: DOS  [Select]
  1. 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.
« Last Edit: August 10, 2017, 07:11:21 am by ccrause »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4351
    • wiki


avra

  • Hero Member
  • *****
  • Posts: 1123
    • Additional info
  • gdb 7.0.1 - Works
  • gdb 8.0 - Doesn't work as is, but works with patch.
It would be nice to provide downloadable binaries, at least for your os and bitness  :-[
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

ccrause

  • New member
  • *
  • Posts: 48
It would be nice to provide downloadable binaries, at least for your os and bitness  :-[
Download link...

avra

  • Hero Member
  • *****
  • Posts: 1123
    • Additional info
It would be nice to provide downloadable binaries, at least for your os and bitness  :-[
Download link...
Thank you!  :D
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus