Thread overview | |||||
---|---|---|---|---|---|
|
March 05, 2014 Does LDC support debugging on Windows with GDB? | ||||
---|---|---|---|---|
| ||||
I've installed LDC 0.12.1 with the i686-w64-mingw32-gcc-dw2-4.8.0-win32_rubenvb.7z MingW installation. I've tried compiled a simple program with -g and -gc options, but when I start GDB, I get: Reading symbols from D:\devel\Scratchpad.D\DeeTest\myapp.exe...(no debugging symbols found)...done. (gdb) DW_FORM_strp pointing outside of .debug_str section [in module D:\devel\Scratchpad.D\DeeTest\myapp-c.exe] Is LDC outputting debug information in DWARF format or MSVC's? Or is GDB not even supported and I have to use LLDB? -- Bruno Medeiros https://twitter.com/brunodomedeiros |
March 05, 2014 Re: Does LDC support debugging on Windows with GDB? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bruno Medeiros | On 05/03/2014 16:41, Bruno Medeiros wrote: > I've installed LDC 0.12.1 with the > i686-w64-mingw32-gcc-dw2-4.8.0-win32_rubenvb.7z MingW installation. > > I've tried compiled a simple program with -g and -gc options, but when I > start GDB, I get: > > Reading symbols from D:\devel\Scratchpad.D\DeeTest\myapp.exe...(no > debugging symbols found)...done. > (gdb) DW_FORM_strp pointing outside of .debug_str section [in module > D:\devel\Scratchpad.D\DeeTest\myapp-c.exe] > > Is LDC outputting debug information in DWARF format or MSVC's? Or is GDB > not even supported and I have to use LLDB? > Just found a previous thread regarding the same issue: http://forum.dlang.org/thread/iiqppmojezdrmnsfienq@forum.dlang.org Any update on this? -- Bruno Medeiros https://twitter.com/brunodomedeiros |
March 05, 2014 Re: Does LDC support debugging on Windows with GDB? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bruno Medeiros | Hi Bruno!
On Wednesday, 5 March 2014 at 16:42:03 UTC, Bruno Medeiros wrote:
> I've installed LDC 0.12.1 with the i686-w64-mingw32-gcc-dw2-4.8.0-win32_rubenvb.7z MingW installation.
>
> I've tried compiled a simple program with -g and -gc options, but when I start GDB, I get:
>
> Reading symbols from D:\devel\Scratchpad.D\DeeTest\myapp.exe...(no debugging symbols found)...done.
> (gdb) DW_FORM_strp pointing outside of .debug_str section [in module D:\devel\Scratchpad.D\DeeTest\myapp-c.exe]
>
> Is LDC outputting debug information in DWARF format or MSVC's? Or is GDB not even supported and I have to use LLDB?
LDC emits debug info in DWARF format. It is generally working under Linux. I think it is a LLVM bug. LLVM on MinGW is not very well tested.
Regards,
Kai
|
Copyright © 1999-2021 by the D Language Foundation