November 16, 2013
On 2013-11-15 17:15, Bruno Medeiros wrote:

> I'd very much welcome any reports of things that you think maybe be a
> defect with DDT (or CDT). If GDB works from the command line, it should
> work from Eclipse as well.
> A few things to watch for:
> Seems like a 32-bit GDB can only debug 32-bit binaries, and a 64 bit GDB
> can only debug 64 bit binaries. And you if you try otherwise you won't
> get a clear error message, so it can be confusing.

Is that a limitation in DDT/CDT?

-- 
/Jacob Carlborg
November 18, 2013
Quick question: with the current version is it possible to use it with a dub project at all (maybe via a manual project setup)?

I was trying to manually set it up, pointing "sources" as the source folder and trying to get the ~/.dub/packages into the list of libraries, but it did not seem to like it...
November 18, 2013
On Monday, 18 November 2013 at 15:28:36 UTC, Jacek Furmankiewicz wrote:
> Quick question: with the current version is it possible to use it with a dub project at all (maybe via a manual project setup)?
>
> I was trying to manually set it up, pointing "sources" as the source folder and trying to get the ~/.dub/packages into the list of libraries, but it did not seem to like it...

Yes, manual setup is possible, but you must use absolute path without `~`.
November 18, 2013
On 16/11/2013 10:11, Jacob Carlborg wrote:
> On 2013-11-15 17:15, Bruno Medeiros wrote:
>
>> I'd very much welcome any reports of things that you think maybe be a
>> defect with DDT (or CDT). If GDB works from the command line, it should
>> work from Eclipse as well.
>> A few things to watch for:
>> Seems like a 32-bit GDB can only debug 32-bit binaries, and a 64 bit GDB
>> can only debug 64 bit binaries. And you if you try otherwise you won't
>> get a clear error message, so it can be confusing.
>
> Is that a limitation in DDT/CDT?
>

No, there's no inherent limitation in DDT/CDT regarding that.
But I was mistaken, that limitation I think is only for the GDB in the TDM-GCC suite:
"You can't use a 32-bit version of GDB to debug a 64-bit program. This is why the version of GDB provided with the TDM64 edition is a 64-bit-only program. You need to use a 32-bit version of GDB, such as the one provided by the MinGW.org project, to debug 32-bit programs."
http://tdm-gcc.tdragon.net/quirks

I'm not sure how it is on GDB on Linux.


-- 
Bruno Medeiros - Software Engineer
November 18, 2013
On 14/11/2013 17:54, Bruno Medeiros wrote:
> DDT 0.9.0 ("Debugging is Magic") is out, see post:
> https://groups.google.com/d/msg/ddt-ide/VwA7ifYt9c0/wBcvUSVKNqMJ
>

BTW, the CDT devs are contemplating supporting LLDB as well:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=405670
(primarily motivated by the poor support for GDB toolchain in Mac)

Nothing is decided or started yet, but it would be quite nice if they went for it, as then LLDB support could be trivially added to DDT as well. *fingers crossed*
Especially cool since the LDC compiler seems to be keeping up with DMD and being up to date better than GDC (this is just my impression, I haven't checked this claim)


-- 
Bruno Medeiros - Software Engineer
November 18, 2013
On 2013-11-18 16:37, Bruno Medeiros wrote:

> No, there's no inherent limitation in DDT/CDT regarding that.
> But I was mistaken, that limitation I think is only for the GDB in the
> TDM-GCC suite:
> "You can't use a 32-bit version of GDB to debug a 64-bit program. This
> is why the version of GDB provided with the TDM64 edition is a
> 64-bit-only program. You need to use a 32-bit version of GDB, such as
> the one provided by the MinGW.org project, to debug 32-bit programs."
> http://tdm-gcc.tdragon.net/quirks
>
> I'm not sure how it is on GDB on Linux.

On Mac OS X it's no problem. I can almost mix and match 32bit and 64bit willy-nilly.

-- 
/Jacob Carlborg
November 18, 2013
On 2013-11-18 16:49, Bruno Medeiros wrote:

> BTW, the CDT devs are contemplating supporting LLDB as well:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=405670
> (primarily motivated by the poor support for GDB toolchain in Mac)
>
> Nothing is decided or started yet, but it would be quite nice if they
> went for it, as then LLDB support could be trivially added to DDT as
> well. *fingers crossed*
> Especially cool since the LDC compiler seems to be keeping up with DMD
> and being up to date better than GDC (this is just my impression, I
> haven't checked this claim)

Is it possible to use the GDB interface and invoke LLDB instead as the executable? Just to see what happens. They're supposed to be fairly compatible.

-- 
/Jacob Carlborg
November 18, 2013
On 18 November 2013 15:49, Bruno Medeiros <brunodomedeiros+dng@gmail.com>wrote:

> On 14/11/2013 17:54, Bruno Medeiros wrote:
>
>> DDT 0.9.0 ("Debugging is Magic") is out, see post: https://groups.google.com/d/msg/ddt-ide/VwA7ifYt9c0/wBcvUSVKNqMJ
>>
>>
> BTW, the CDT devs are contemplating supporting LLDB as well:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=405670
> (primarily motivated by the poor support for GDB toolchain in Mac)
>
> Nothing is decided or started yet, but it would be quite nice if they went
> for it, as then LLDB support could be trivially added to DDT as well.
> *fingers crossed*
> Especially cool since the LDC compiler seems to be keeping up with DMD and
> being up to date better than GDC (this is just my impression, I haven't
> checked this claim)
>
>
Check you claims. :o)


The only discrepancy as of writing is that Martin's work on shared library support is incompatible with, and currently blocking the 2.064 merge in GDC.


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


November 19, 2013
On 18/11/2013 15:32, ilya-stromberg wrote:
> On Monday, 18 November 2013 at 15:28:36 UTC, Jacek Furmankiewicz wrote:
>> Quick question: with the current version is it possible to use it with
>> a dub project at all (maybe via a manual project setup)?
>>
>> I was trying to manually set it up, pointing "sources" as the source
>> folder and trying to get the ~/.dub/packages into the list of
>> libraries, but it did not seem to like it...
>
> Yes, manual setup is possible, but you must use absolute path without `~`.

Exactly, although you can use some Eclipse resource variables in the path of linked folders.

-- 
Bruno Medeiros - Software Engineer
November 19, 2013
On 18/11/2013 20:46, Jacob Carlborg wrote:
> On 2013-11-18 16:49, Bruno Medeiros wrote:
>
>> BTW, the CDT devs are contemplating supporting LLDB as well:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=405670
>> (primarily motivated by the poor support for GDB toolchain in Mac)
>>
>> Nothing is decided or started yet, but it would be quite nice if they
>> went for it, as then LLDB support could be trivially added to DDT as
>> well. *fingers crossed*
>> Especially cool since the LDC compiler seems to be keeping up with DMD
>> and being up to date better than GDC (this is just my impression, I
>> haven't checked this claim)
>
> Is it possible to use the GDB interface and invoke LLDB instead as the
> executable? Just to see what happens. They're supposed to be fairly
> compatible.
>

Nah, the interface that GDB frontends use is an API for backends only called MI (Machine Interface). It's different from the console interpreter, and LLDB does not support that:
http://lists.cs.uiuc.edu/pipermail/lldb-dev/2013-February/001456.html

-- 
Bruno Medeiros - Software Engineer