Recent

Author Topic: Debugger goes missing?  (Read 2867 times)

abtaylr

  • Full Member
  • ***
  • Posts: 107
Debugger goes missing?
« on: December 11, 2015, 04:46:09 am »
I am using fpc-3.0.0 with Lazarus 1.7 SVN trunk build 50735.  I have been debugging away, sorted out a couple of problems and decided to do a quick compile.  The error comes up that lazarus can't find Infodwrf used.  I checked the lazarus options and found it was pointing to /usr/bin/gdb.  I used Dolphin on my Kubuntu 15.10 64 bit machine and duly found gdb in that location.  I looked all through the various fpc and lazarus directories for something called infodwrf and found nothing. Then I looked on both FPC and Lazarus wiki's for debugger and/or FAQ's relating to dependencies, this error or anything similar and found nothing helpful.

I know this sounds simple but where else should I be looking and for what? I suspect this is a simple problem.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12209
  • Debugger - SynEdit - and more
    • wiki
Re: Debugger goes missing?
« Reply #1 on: December 11, 2015, 04:59:29 am »
the unit "Infodwrf" is for heaptrc.

It is used (compiled into your exe) if you specify -gh and -gw
gh heaptrace
gw dwarf

Infodwrf prints a backtrace to console, if your app crashes. It does that from inside your app, it needs no gdb for that.

If you want to debug in gdb (or in Lazarus, which does use gdb by default) then -gh is not needed. You only need -gw  (and maybe -godwarfsets )


I have no idea why you could not find it in your fpc.

 

TinyPortal © 2005-2018