Latest GDB version problems

2010-05-10 Thread Piotrek
Hi, I tried to debug program in gdb (with d support) but with no big success. I'm on kubuntu 10.04 I compiled gdb from trunk. 7.1.50.20100504 I use the -gc switch with dmd of course. With this example (brakeboint at line 8) 1. import std.stdio; 2. 3. 4. void main() 5. { 6. int i = 1;

Re: Latest GDB version problems

2010-05-10 Thread Piotrek
W dniu 10.05.2010 20:48, Piotrek pisze: Hi, I tried to debug program in gdb (with d support) but with no big success. I'm on kubuntu 10.04 I compiled gdb from trunk. 7.1.50.20100504 I use the -gc switch with dmd of course. The dmd version is 2.045.

Re: Latest GDB version problems

2010-05-10 Thread Robert Clipsham
On 10/05/10 19:48, Piotrek wrote: (gdb) info locals i = 1 s = 578159222890430469 f = 9.55146781e-38 (gdb) show language The current source language is auto; currently d. You are not using a version of gdb with D support if s is not displayed as a string. This said, I've only ever looked at

Re: Latest GDB version problems

2010-05-10 Thread Piotrek
W dniu 10.05.2010 21:02, Robert Clipsham pisze: You are not using a version of gdb with D support if s is not displayed as a string. This said, I've only ever looked at variables using print or a backtrace, could you try 'p s' and see what result it gives? (gdb) p s $1 = 578159222890430469 No

rebuild configuration

2010-05-10 Thread theambient
Hi Is the documentation for rebuild? I'm going to use it but it compiles tango for every project. Where should I tell him to use tango.lib from dmd folder and exclude some folders from dependency search? I've changed etc/rebuild/default contents to profile=dmd-win-tango but it

opAddAssign still works

2010-05-10 Thread Steven Schveighoffer
I just made a startling discovery: the old operator overload routines still work in 2.045 Is this intended? struct S { int x; S opAddAssign(ref const S other) { x += other.x; return this; } } void foo(S s) { s += s; } generates no error. And in fact,

Re: opAddAssign still works

2010-05-10 Thread Ali Çehreli
Steven Schveighoffer wrote: I just made a startling discovery: the old operator overload routines still work in 2.045 Is this intended? I don't know, but I am happy that they still work. I haven't gotten around to changing my code to use the new syntax yet. :) I hope the old syntax

Re: opAddAssign still works

2010-05-10 Thread Steven Schveighoffer
On Mon, 10 May 2010 17:58:37 -0400, Ali Çehreli acehr...@yahoo.com wrote: Steven Schveighoffer wrote: I just made a startling discovery: the old operator overload routines still work in 2.045 Is this intended? I don't know, but I am happy that they still work. I haven't gotten around to

Re: opAddAssign still works

2010-05-10 Thread Trass3r
Yeah it still works for compatibility reasons but is deprecated.

Re: Latest GDB version problems

2010-05-10 Thread Brad Roberts
On Mon, 10 May 2010, Robert Clipsham wrote: On 10/05/10 19:48, Piotrek wrote: (gdb) info locals i = 1 s = 578159222890430469 f = 9.55146781e-38 (gdb) show language The current source language is auto; currently d. You are not using a version of gdb with D support if s is not