Recent

Author Topic: Debugger broken in FPC3.2.0 textmode IDE ?  (Read 3168 times)

Nitorami

  • Sr. Member
  • ****
  • Posts: 481
Debugger broken in FPC3.2.0 textmode IDE ?
« on: November 24, 2020, 08:48:35 pm »
Is anyone still using the textmode IDE under windows 10 and has issues with the integrated debugger ? The disassembler only produces ridiculous snippets, see this here for a complete matrix solver...

Code: Pascal  [Select][+][-]
  1. Dump of assembler code for function SOLVE:
  2. 334     end;
  3. $004146A7:      pop    %ebx
  4. $004146A8:      mov    %ebp,%esp
  5. $004146AA:      pop    %ebp
  6. $004146AB:      ret
  7. $004146AC:      add    %al,(%eax)
  8. $004146AE:      add    %al,(%eax)
  9.  
  10. End of assembler dump.
  11.  

I thought disabling optimisations might help, and recompiled using the most conservative and debugger friendly settings, and the output is :-

Code: Pascal  [Select][+][-]
  1. Dump of assembler code for function SOLVE:
  2. End of assembler dump.
  3.  

Tataa !  :D

The same code debugs perfectly with FPC3.0.4.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: Debugger broken in FPC3.2.0 textmode IDE ?
« Reply #1 on: December 07, 2020, 09:40:57 pm »
Looks like a perfectly fine function epilogue followed by two alignment instructions that align the next label on a 16-byte border.

But afaik the debugger is now external, and no longer integrated with 3.2 ?

 

TinyPortal © 2005-2018