www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - GDB sees no line number information on Mac OS X

Anyone had some success in stepping through DMD-generated code using 
GDB on Mac OS X? The only thing I can do is get a list of function 
names in the stack.

(Using Apple's GDB version 966.)


Crystal:~ mifo$ dmd test.d -gc
Crystal:~ mifo$ gdb ./test
GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for 
shared libraries ... done

(gdb) break _Dmain
Breakpoint 1 at 0x2572
(gdb) run
Starting program: /Users/mifo/test
Reading symbols for shared libraries ++. done

Breakpoint 1, 0x00002572 in D main ()
(gdb) bt


(gdb) step
Single stepping until exit from function _Dmain,
which has no line number information.
hello world
0x00015f05 in main ()
(gdb)



-- 
Michel Fortin
michel.fortin michelf.com
http://michelf.com/
Jul 25 2009