www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Does anyone get line numbers in stack traces on Linux?

reply "Atila Neves" <atila.neves gmail.com> writes:
I thought it was because I was weird and I use gold as my linker, 
but ld.bfd produced the same results. The most I could find in 
bug reports was someone complaining it used to work but the 
consensus was that it never did?

Atila
Jun 17 2015
next sibling parent "Dicebot" <public dicebot.lv> writes:
druntime has never had support for file/line info in traces on 
Linux AFAIR
gdb usually saves the day
Jun 17 2015
prev sibling next sibling parent reply "weaselcat" <weaselcat gmail.com> writes:
On Wednesday, 17 June 2015 at 07:53:16 UTC, Atila Neves wrote:
 I thought it was because I was weird and I use gold as my 
 linker, but ld.bfd produced the same results. The most I could 
 find in bug reports was someone complaining it used to work but 
 the consensus was that it never did?

 Atila
addr2line
Jun 17 2015
parent "weaselcat" <weaselcat gmail.com> writes:
On Wednesday, 17 June 2015 at 11:07:29 UTC, weaselcat wrote:
 On Wednesday, 17 June 2015 at 07:53:16 UTC, Atila Neves wrote:
 I thought it was because I was weird and I use gold as my 
 linker, but ld.bfd produced the same results. The most I could 
 find in bug reports was someone complaining it used to work 
 but the consensus was that it never did?

 Atila
addr2line
BTW, I use the backtrace API from glibc to dump a stack trace that is filtered through addr2line and demangled.
Jun 17 2015
prev sibling parent ketmar <ketmar ketmar.no-ip.org> writes:
i have that.

with GCD. ;-)=
Jun 17 2015