[Lazarus] Stacktrace using Dwarf vs Stabs (maybe an RTFM question).

Bart bartjunk64 at gmail.com
Tue Jan 13 13:04:59 CET 2015


Hi,

Currently I use stabs as default type for debug info.
However it seems that dwarf is now supposed to be the preferred setting?

Here I deliberately crash a program.
(Lazarus 1.5, fpc 2.6.4, win32 on win7-64)

The stacktrace output is:

Stabs (-gs):
1 div 0 = TApplication.HandleException Division by zero
  Stack trace:
  $0042AC6D  PROC10,  line 477 of main.pp
  $0042ACC8  PROC9,  line 482 of main.pp
  $0042ACD8  PROC8,  line 487 of main.pp
  $0042ACE8  PROC7,  line 492 of main.pp
  $0042ACF8  PROC6,  line 497 of main.pp
  $0042AD08  PROC5,  line 502 of main.pp
  $0042AD18  PROC4,  line 507 of main.pp
  $0042AD28  PROC3,  line 512 of main.pp
  $0042AD38  PROC2,  line 517 of main.pp
  $0042AD48  PROC1,  line 522 of main.pp
  $0042AD61  TFORM1__BUTTON6CLICK,  line 527 of main.pp

Dwarf (-gw2)
1 div 0 = TApplication.HandleException Division by zero
  Stack trace:
  $0042B56D line 477 of main.pp
  $0042B5C8 line 482 of main.pp
  $0042B5D8 line 487 of main.pp
  $0042B5E8 line 492 of main.pp
  $0042B5F8 line 497 of main.pp
  $0042B608 line 502 of main.pp
  $0042B618 line 507 of main.pp
  $0042B628 line 512 of main.pp
  $0042B638 line 517 of main.pp
  $0042B648 line 522 of main.pp
  $0042B661 line 527 of main.pp
  $0052BF3E

I prefer the fact that stabs puts in the procedurenames in the
backtrace, where dwarf doesn not.
The dwarf stacktrace is not very usefull in this way to me.

Did I miss some configuration option to let dwarf put in the procedurenames?

Bart




More information about the Lazarus mailing list