Re: GDB + ddemangle

2019-04-26 Thread Basile B. via Digitalmars-d-announce
On Friday, 26 April 2019 at 07:08:45 UTC, Arun Chandrasekaran wrote: On Friday, 20 April 2018 at 17:55:12 UTC, Iain Buclaw wrote: On 20 April 2018 at 17:40, drug via Digitalmars-d-announce wrote: 20.04.2018 16:49, Iain Buclaw пишет: [...] it works, thank you. But not in all cases. For

Re: GDB + ddemangle

2019-04-26 Thread Arun Chandrasekaran via Digitalmars-d-announce
On Friday, 20 April 2018 at 17:55:12 UTC, Iain Buclaw wrote: On 20 April 2018 at 17:40, drug via Digitalmars-d-announce wrote: 20.04.2018 16:49, Iain Buclaw пишет: [...] it works, thank you. But not in all cases. For example when gdb stops on breakpoint it demangle, but if I do `bt` -

Re: GDB + ddemangle

2018-04-25 Thread ANtlord via Digitalmars-d-announce
On Wednesday, 25 April 2018 at 05:12:37 UTC, Joakim wrote: On Wednesday, 25 April 2018 at 05:09:28 UTC, ANtlord wrote: On Friday, 20 April 2018 at 17:55:12 UTC, Iain Buclaw wrote: On 20 April 2018 at 17:40, drug via Digitalmars-d-announce wrote: Using a

Re: GDB + ddemangle

2018-04-24 Thread Joakim via Digitalmars-d-announce
On Wednesday, 25 April 2018 at 05:09:28 UTC, ANtlord wrote: On Friday, 20 April 2018 at 17:55:12 UTC, Iain Buclaw wrote: On 20 April 2018 at 17:40, drug via Digitalmars-d-announce wrote: Using a compiler that implements 2.077 or later (IIRC) probably

Re: GDB + ddemangle

2018-04-24 Thread ANtlord via Digitalmars-d-announce
On Friday, 20 April 2018 at 17:55:12 UTC, Iain Buclaw wrote: On 20 April 2018 at 17:40, drug via Digitalmars-d-announce wrote: Using a compiler that implements 2.077 or later (IIRC) probably won't, due to gdb being too old. They broke ABI by introducing

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
20.04.2018 20:55, Iain Buclaw пишет: Using a compiler that implements 2.077 or later (IIRC) probably won't, due to gdb being too old. They broke ABI by introducing back referencing, no release of gdb supports that yet. I see. Thanks for clarification. Aren't plugins for gdb like subj more

Re: GDB + ddemangle

2018-04-20 Thread Iain Buclaw via Digitalmars-d-announce
On 20 April 2018 at 17:40, drug via Digitalmars-d-announce wrote: > 20.04.2018 16:49, Iain Buclaw пишет: >> >> >> GDB auto-detects the language based on DW_LANG tag in the debug info. >> >> If you are starting up gdb without a program to debug, you can >>

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
20.04.2018 16:49, Iain Buclaw пишет: GDB auto-detects the language based on DW_LANG tag in the debug info. If you are starting up gdb without a program to debug, you can explicitly switch with: set lang d Then try something like: demangle _D3fooFiZv Or if you want it to start up in D mode:

Re: GDB + ddemangle

2018-04-20 Thread Iain Buclaw via Digitalmars-d-announce
On 20 April 2018 at 14:54, drug via Digitalmars-d-announce wrote: > 20.04.2018 15:36, Mike Franklin пишет: > >> 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

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
20.04.2018 15:36, Mike Franklin пишет: 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

Re: GDB + ddemangle

2018-04-20 Thread Basile B. via Digitalmars-d-announce
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

Re: GDB + ddemangle

2018-04-20 Thread Mike Franklin via Digitalmars-d-announce
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

Re: GDB + ddemangle

2018-04-20 Thread Basile B. via Digitalmars-d-announce
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

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
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

Re: GDB + ddemangle

2018-04-20 Thread Mike Wey via Digitalmars-d-announce
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`

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
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.

Re: GDB + ddemangle

2018-04-20 Thread Basile B. via Digitalmars-d-announce
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

Re: GDB + ddemangle

2018-04-20 Thread Joakim via Digitalmars-d-announce
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

Re: GDB + ddemangle

2018-04-19 Thread Craig Dillabaugh via Digitalmars-d-announce
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.

GDB + ddemangle

2018-04-19 Thread ANtlord via Digitalmars-d-announce
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!