Recent

Author Topic: FpDebug questions  (Read 803 times)

440bx

  • Hero Member
  • *****
  • Posts: 4727
FpDebug questions
« on: April 24, 2024, 03:43:41 am »
Hello,

Using Lazarus v3.99 (trunk).

In the first screenshot, the Assembler window shows source lines in the sequence 1665, 1664, 1665, 1664, 1667.  Should the fact that the lines are out of sequence and repeated be considered a bug (I guess, probably due to the way FPC generated dwarf info) ?

In the second screenshot, the "Redirect" options have a "From file" and "From file (at EOF)"  what's the difference between those two options ? 

Thank you for your help.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10546
  • Debugger - SynEdit - and more
    • wiki
Re: FpDebug questions
« Reply #1 on: April 24, 2024, 11:25:02 am »
The line order in the asm, is due to what FPC said for each address which line it was.

If you step (or try to step in) this lines, then you will notice it goes back and forth too. => as each param gets prepared, and then put in place for the call. Or something like this, whatever criteria fpc used to attribute each asm statement to either line.



The handle for the file can be set (seeked) to the begin or end of the file.

E.g. if you want to "tail" that file, if it still gets written to.

440bx

  • Hero Member
  • *****
  • Posts: 4727
Re: FpDebug questions
« Reply #2 on: April 24, 2024, 01:22:53 pm »
Thank you Martin. 

Now, the "raison d'etre" of those two options makes sense.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018