November 09, 2013
On Saturday, 9 November 2013 at 23:39:45 UTC, Timothee Cour wrote:
> And yet lldb *can* display line numbers so the info is there.
>
Yes, in the debug info. Also look at deadalnix reply.

November 10, 2013
On Saturday, 9 November 2013 at 23:48:54 UTC, Martin Nowak wrote:
> On Saturday, 9 November 2013 at 23:39:45 UTC, Timothee Cour wrote:
>> And yet lldb *can* display line numbers so the info is there.
>>
> Yes, in the debug info. Also look at deadalnix reply.

I've implemented a simple thing using addr2line. It uses dwarf debug information to resolve the addresses provided by the backtrace to line numbers.

https://github.com/yazd/backtrace-d

I also have some code that reads elf and dwarf, but it isn't pretty. It can do the same thing that addr2line does.
November 15, 2013
On Sunday, 10 November 2013 at 07:01:57 UTC, yazd wrote:
> I've implemented a simple thing using addr2line. It uses dwarf debug information to resolve the addresses provided by the backtrace to line numbers.
>
> https://github.com/yazd/backtrace-d

Very cool, thanks, will check it out later today and report back. Wondering if there any chances of something like that being provided by the standard D library in the foreseeable future? Because without it, effectively debugging even small-sized projects is nigh impossible and painful.
1 2
Next ›   Last »