www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - -g on Linux

reply evilmrhenrynospaam emhsoft.net writes:
So the -g flag isn't actually implemented on Linux. I'm OK with that. The
problem I have is that the console doesn't actually tell you this; the only
warning seems to be at the website.

I would appreciate it if "dmd -g something.d" outputed something like:
Warning: -g flag is not implemented on Linux.
Feb 05 2005
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
evilmrhenrynospaam emhsoft.net wrote:

 So the -g flag isn't actually implemented on Linux. I'm OK with that. The
 problem I have is that the console doesn't actually tell you this; the only
 warning seems to be at the website.
 
 I would appreciate it if "dmd -g something.d" outputed something like:
 Warning: -g flag is not implemented on Linux.
Actually, using -g on Linux does do *something*. It passes -g to the linker...

 gcc hello.o -o hello -lphobos -lpthread -lm 

 gcc hello.o -o hello -g -lphobos -lpthread -lm 
But I guess it's just one of those bugs that'll get fixed before 1.0 ?
 Linux Bugs

 * -g is not implemented, because I haven't figured out how to  do it
   yet. gdb still works, though, at the global symbol level.
http://www.digitalmars.com/d/dcompiler.html#linux Another thing that is missing is a symbol "demangler" for GDB, although there is a D program that does the actual demangling: http://svn.dsource.org/svn/projects/bindings/trunk/demangle.d --anders
Feb 06 2005