Recent

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

ccrause

  • Hero Member
  • *****
  • Posts: 856
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: 9867
  • Debugger - SynEdit - and more
    • wiki


avra

  • Hero Member
  • *****
  • Posts: 2514
    • 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 - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

ccrause

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

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
It would be nice to provide downloadable binaries, at least for your os and bitness  :-[
Download link...
Thank you!  :D
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018