Recent

Author Topic: FpDebug /AVR follow up:  (Read 5693 times)

ccrause

  • Hero Member
  • *****
  • Posts: 845
Re: FpDebug /AVR follow up:
« Reply #15 on: February 17, 2021, 09:12:37 am »
Progress update: avr disassembler unit for testing (https://github.com/ccrause/lazarus/blob/master/components/fpdebug/fpdbgdisasavr.pp)

The disassembler can be tested with the asmtest program after applying this patch: https://github.com/ccrause/lazarus/commit/1efb5d1426a1443233122276367b8651353077f6
I'm trying to find a way to make AVR programs debug.
but i fail even on the step "apply this patch to lazarus".
how can i make that?
Michael

Those instructions are a bit out of date.  Most of the previous changes to fpdebug has been merged with trunk, but unfortunately the remote connection details are not exposed, so it is a bit awkward to use.  I'm busy updating the AVR and remote properties - if you like you can test this git branch: https://github.com/ccrause/lazarus/tree/fpdebugger-2021. Since this is still under development there may be a few issues, but of course if you find issues then please report them in this thread (not the bug tracker as this is still an out of tree fork).

Another option is use the gdbserver option in Lazarus (also described by Dimitrios), but then you need a patched avr-gdb to make addresses map correctly to memory.

fliegermichl

  • New member
  • *
  • Posts: 7
Re: FpDebug /AVR follow up:
« Reply #16 on: February 17, 2021, 09:23:27 am »
Thank you very much!
I will give it a try.

ccrause

  • Hero Member
  • *****
  • Posts: 845
Re: FpDebug /AVR follow up:
« Reply #17 on: February 18, 2021, 11:01:19 am »
... I'm busy updating the AVR and remote properties - if you like you can test this git branch: https://github.com/ccrause/lazarus/tree/fpdebugger-2021. Since this is still under development there may be a few issues, but of course if you find issues then please report them in this thread (not the bug tracker as this is still an out of tree fork).
Just a note for those brave enough to test this branch - it has issues building with make because of dependencies not yet properly configured in the makefile and/or packages.  Rebuilding this branch from inside an existing Lazarus IDE does work. Basically copy a working Lazarus executable into this source, open, configure compiler etc. and then click on Tools : Build Lazarus...

ccrause

  • Hero Member
  • *****
  • Posts: 845
Re: FpDebug /AVR follow up:
« Reply #18 on: February 21, 2021, 06:05:51 pm »
Just a note for those brave enough to test this branch - it has issues building with make because of dependencies not yet properly configured in the makefile and/or packages.  Rebuilding this branch from inside an existing Lazarus IDE does work. Basically copy a working Lazarus executable into this source, open, configure compiler etc. and then click on Tools : Build Lazarus...
The make issues should be fixed now (at least make all and make bigide works for me).  Note that I started a new branch because there were a whole bunch of changes to reverse, and there were conflicts with upstream changes).  The new branch: https://github.com/ccrause/lazarus/tree/fpdebugger-2021-2

 

TinyPortal © 2005-2018