GDB - lets make D support awesome

Jerry jlquinn at optonline.net
Mon Dec 2 08:53:59 PST 2013


Iain Buclaw <ibuclaw at gdcproject.org> writes:

> On 27 November 2013 23:15, Brad Roberts <braddr at puremagic.com> wrote:
>> On 11/27/13 1:56 PM, Iain Buclaw wrote:
>>>
>>> On 27 November 2013 20:17, Jerry <jlquinn at optonline.net> wrote:
>>>> Hi Ian,  Here's a first bug.
>>>>
>>>>   I'm on Ubuntu 12.10 x86_64.  Debugging isn't stepping through the code.
>>>> Here's a simple example.  This is with dmd 2.064.2 and a fresh clone of
>>>> your git repo.
>>>>
>>>> junk2.d:
>>>> import std.stdio;
>>>>
>>>> void main(string args[]) {
>>>>      string ss = "hi there";
>>>>      writeln(ss);
>>>> }
>>>>
>>>
>>> Hi Jerry,
>>>
>>> I believe dmd is only compatible with gdb 7.5.  Likewise gdc-4.7 is
>>> compatible with 7.5, but not 7.6 (you should use gdc-4.8 or the
>>> development branch if you want gdb to work properly).
>>>
>>> For dmd, someone needs to fix dmd to work with gdb-7.6.
>>>
>>
>> This level of if this then thating with versions is pretty painful.  It's
>> something we've got to get past somehow (yeah, there's a chicken/egg issue).
>> It's this sort of area where things don't "just work" that puts off
>> developers.
>
> Actually, I might have got it backwards.  :o)
>
> gdc-4.8 is not compatible with gdb-7.5, but gdb-7.6 should be
> backwards compatible, knock on wood.
>
>
> Jerry - have you tested debugging with -gc ?

I tried with -gc and with -gc -g and get the same inability to find the
frame base with dmd.  I'll build gdc 48 tonight and try it.


More information about the Digitalmars-d mailing list