Forum > Debugger

FpDebug /AVR follow up:

<< < (4/4)

ccrause:

--- Quote from: fliegermichl on February 16, 2021, 06:37:40 pm ---
--- Quote from: ccrause on October 19, 2019, 06:36:01 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

--- End quote ---
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

--- End quote ---

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:
Thank you very much!
I will give it a try.

ccrause:

--- Quote from: ccrause on February 17, 2021, 09:12:37 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).

--- End quote ---
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:

--- Quote from: ccrause on February 18, 2021, 11:01:19 am ---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...

--- End quote ---
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

Navigation

[0] Message Index

[*] Previous page

Go to full version