Jump to page: 1 2
Thread overview
GDB + ddemangle
Apr 19, 2018
ANtlord
Apr 19, 2018
Craig Dillabaugh
Apr 20, 2018
Joakim
Apr 20, 2018
Basile B.
Apr 20, 2018
drug
Apr 20, 2018
Mike Wey
Apr 20, 2018
drug
Apr 20, 2018
Basile B.
Apr 20, 2018
Basile B.
Apr 20, 2018
Mike Franklin
Apr 20, 2018
drug
Apr 20, 2018
Iain Buclaw
Apr 20, 2018
drug
Apr 20, 2018
Iain Buclaw
Apr 20, 2018
drug
Apr 25, 2018
ANtlord
Apr 25, 2018
Joakim
Apr 25, 2018
ANtlord
Apr 27, 2019
Basile B.
April 19, 2018
Hello! I've written a piece of glue code that helps to debug D code using GDB. The code glues together GDB and ddmangle. Checkout the link https://github.com/ANtlord/gdb-ddemangle

PRs are welcome!
April 19, 2018
On Thursday, 19 April 2018 at 12:43:36 UTC, ANtlord wrote:
> Hello! I've written a piece of glue code that helps to debug D code using GDB. The code glues together GDB and ddmangle. Checkout the link https://github.com/ANtlord/gdb-ddemangle
>
> PRs are welcome!

Nice work.
April 20, 2018
On Thursday, 19 April 2018 at 12:43:36 UTC, ANtlord wrote:
> Hello! I've written a piece of glue code that helps to debug D code using GDB. The code glues together GDB and ddmangle. Checkout the link https://github.com/ANtlord/gdb-ddemangle
>
> PRs are welcome!

You are aware that gdb has built-in support for demangling D for 3-4 years now?

http://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git&a=search&h=HEAD&st=commit&s=ibuclaw

I don't know if Iain got all his patches in, but it demangles a lot of symbols for me already. However, I just started using the new lldb package in Termux, and I do miss it there. Otherwise, lldb is very nice and much more stable for me on 64-bit ARM.
April 20, 2018
On Friday, 20 April 2018 at 10:03:53 UTC, Joakim wrote:
> On Thursday, 19 April 2018 at 12:43:36 UTC, ANtlord wrote:
>> Hello! I've written a piece of glue code that helps to debug D code using GDB. The code glues together GDB and ddmangle. Checkout the link https://github.com/ANtlord/gdb-ddemangle
>>
>> PRs are welcome!
>
> You are aware that gdb has built-in support for demangling D for 3-4 years now?

I've been told this too, not so long ago, but actually i still feed GDB output with ddemangle too (for Coedit 'GDB commander' widget).


April 20, 2018
20.04.2018 13:03, Joakim пишет:
> 
> You are aware that gdb has built-in support for demangling D for 3-4 years now?
> 
But how to enable it? It doesn't work out of box at least for me.
April 20, 2018
On 20-04-18 12:36, drug wrote:
> 20.04.2018 13:03, Joakim пишет:
>>
>> You are aware that gdb has built-in support for demangling D for 3-4 years now?
>>
> But how to enable it? It doesn't work out of box at least for me.

It should be automatic when the executable is build with debugging info. `-g`

-- 
Mike Wey
April 20, 2018
20.04.2018 14:06, Mike Wey пишет:
> On 20-04-18 12:36, drug wrote:
>> 20.04.2018 13:03, Joakim пишет:
>>>
>>> You are aware that gdb has built-in support for demangling D for 3-4 years now?
>>>
>> But how to enable it? It doesn't work out of box at least for me.
> 
> It should be automatic when the executable is build with debugging info. `-g`
> 
is there a way to check feature availability? What version gdb should have etc?
April 20, 2018
On Friday, 20 April 2018 at 11:06:47 UTC, Mike Wey wrote:
> On 20-04-18 12:36, drug wrote:
>> 20.04.2018 13:03, Joakim пишет:
>>>
>>> You are aware that gdb has built-in support for demangling D for 3-4 years now?
>>>
>> But how to enable it? It doesn't work out of box at least for me.
>
> It should be automatic when the executable is build with debugging info. `-g`

it is not, clearly ;)
April 20, 2018
On Friday, 20 April 2018 at 10:36:25 UTC, drug wrote:
> 20.04.2018 13:03, Joakim пишет:
>> 
>> You are aware that gdb has built-in support for demangling D for 3-4 years now?
>> 
> But how to enable it? It doesn't work out of box at least for me.

I believe you enable it with `-demangle=dlang`

The original announcement is here:  https://forum.dlang.org/post/rvoqllpimfskvlabprot@forum.dlang.org

There are a few posts on the forum with some example usages:  https://forum.dlang.org/search?q=%22demangle%3Ddlang%22&page=1

Mike
April 20, 2018
On Friday, 20 April 2018 at 12:28:03 UTC, Basile B. wrote:
> On Friday, 20 April 2018 at 11:06:47 UTC, Mike Wey wrote:
>> On 20-04-18 12:36, drug wrote:
>>> 20.04.2018 13:03, Joakim пишет:
>>>>
>>>> You are aware that gdb has built-in support for demangling D for 3-4 years now?
>>>>
>>> But how to enable it? It doesn't work out of box at least for me.
>>
>> It should be automatic when the executable is build with debugging info. `-g`
>
> it is not, clearly ;)

The problem is that one also needs to process the compiler output in an IDE, so finally it doesn't change anything to anything
« First   ‹ Prev
1 2