Thread overview | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
April 19, 2018 GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
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 Re: GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to ANtlord | 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 Re: GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to ANtlord | 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 Re: GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joakim | 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 Re: GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joakim | 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 Re: GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | 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 Re: GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wey | 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 Re: GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wey | 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 Re: GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | 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 Re: GDB + ddemangle | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | 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
|
Copyright © 1999-2021 by the D Language Foundation