Recent

Author Topic: FPDebug, Duby etc.  (Read 5175 times)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
FPDebug, Duby etc.
« on: November 02, 2017, 10:31:12 am »
I moved this from the "What are we missing?" thread.

I've been on vacation for the past 3 weeks and did some bit of a progress for duby.

It's not much to see, yet.
But I did successfully implemented expression valuation, like:
Code: [Select]
calc(a,b)+calc2(a,b)
where calc() and calc2() are functions in the debugged process, using different calling conventions. (the evaluation is made based on the debugging info available). Needless to say, the expression valuation is expecting pascal syntax.

The biggest challenge was/is actually to create Lazarus-IDE plugin.
The lack of documentation for that is being addressed though.
(please don't point me to GDB plugin... it's 12K lines of code...)
But at this point duby as Lazarus plugin is capable to run,pause and stop the debugged process. Stop at break points, stop and remove them.
Currently working on disassembling (providing some small notes for TCapstone project). And later adding expression valuation support for the plugin as well.

Lot more work to be ahead.
@skalogryz, is it possible you don't know about the current development of FPDebug and its related packages in Lazarus sources?
Well, I don't know much about them either but I really think the debugger effort should be focused into one project.
Joost and Martin have contributed there. Why did they not improve your Duby project directly? I don't know, I believe they have some reason.
@Martin, Joost, comments?

Another complication is that Graeme has another fork also named "FPDebug" but different from "FPDebug" in Lazarus sources. It is now dormant, too.

These are the packages under Lazarus components:
fpdebug 0.0:
Author: Lazarus Team
Description / Abstract: A set of helperclasses for implementing a debugger.

Based on:
1) FPDebug by Marc Weustink
2) Duby by Dmitry Boyarintsev

Extended by Martin Friebe
License: All Files except those listed below: GPL

File(s) with other licenses (see also header in file(s):

* macho.pas
  This file contains Original Code and/or Modifications of Original Code  as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. Please obtain a copy of the License at   http://www.opensource.apple.com/apsl/ and read it before using this  file.
  (Any modifications/translations of this file are from duby)

Filename:  /usr/SW/lazarus_trunk/components/fpdebug/fpdebug.lpk
Current state: not installed, RunAndDesignTime

lazdebuggerfp 0.0:
Author: Joost van der Sluis
Description / Abstract: This package adds a stand-alone debugger to the IDE. For now it is only a proof-of-concept. Evaluating data is not (yet) possible.
License: GPLv2
Filename:  /usr/SW/lazarus_trunk/components/lazdebuggers/lazdebuggerfp/lazdebuggerfp.lpk
Current state: not installed, RunAndDesignTime

lazdebuggerfpdserver 0.1:
Author: Joost van der Sluis
Description / Abstract: Use fpdserver to debug applications
Filename:  /usr/SW/lazarus_trunk/components/lazdebuggers/lazdebuggerfpdserver/lazdebuggerfpdserver.lpk
Current state: not installed, DesignTime

lazdebuggerfpgdbmi 0.1:
Author: Martin Friebe
Description / Abstract: Debugger for the Lazarus IDE
A debugger based on FPDebug and GDB
License: GPL
Filename:  /usr/SW/lazarus_trunk/components/lazdebuggers/lazdebuggerfpgdbmi/lazdebuggerfpgdbmi.lpk
Current state: not installed, RunAndDesignTime


Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: FPDebug, Duby etc.
« Reply #1 on: December 09, 2017, 05:48:52 pm »
I had already forgotten this post. Now Thaddy mentioned it in another thread.
No comments from skalogryz, Martin or Joost?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: FPDebug, Duby etc.
« Reply #2 on: July 02, 2018, 02:23:03 am »
Ping.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: FPDebug, Duby etc.
« Reply #3 on: July 02, 2018, 02:38:55 am »
AFAIK fpdebug was started by Marc long before Joost or I worked on it. Initially I though it was a fork, but recently I was told it is not.
I don't see an issue with having more than one project.

IIRC, when I picked up fpdebug, I did look at duby too. Both projects where similar (probably why I thought they had common origins). I think back then both had been on hold for a while, so I had to decide for one. fpdebug already was in the Lazarus svn, so I guess that aided the decision. Duby would have been as good a candidate as fpdebug.

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: FPDebug, Duby etc.
« Reply #4 on: July 04, 2018, 02:56:57 pm »
Thank you Martin.

 

TinyPortal © 2005-2018